Changing code from repaint to non repaint

 

Greetings,

If anyone can recode the attached indicator

to a non repaint, I'd be grateful.

Warm regards . . .

and Happy New Year

Files:
Trend.mq4  3 kb
 

hey tradewynds..... that indicator is using 'highest high and lowest low' counting backwards from the most current yet uncompleted bar.....

that by definition will almost always repaint to some degree.... if you turned it around the lag would be equivelant to the periods used..... which is why so seldom you will see this type indicator coded in a nonrepainting useable manner.....h

 

Thanks for taking the time to respond.

 

Hayseed,

Thanks again for your explanation of the repaint

trend indicator I attached.

If you were creating an EA, would you use

non repaint indicators exclusively, and do you

have any recommendations for a trend indicator

that would be an additional confirmation for

an entry/exit.

Thanks . . .