Indicator problem

 

Hi,

I have this custom indicator which as shown in the image, is just a quick way to see higher highs and higher lows (based on open/close).

The problem is they are a set length and I want to be able to choose how long they should be, something I can change in the editor depending on my needs at the time.

I cannot see anything that would let me change that though, no number for length or anything.

Does anyone have any advice or suggestions on how to change it?


Thanks

 
 
turny: I cannot see anything that would let me change that though,
Open[i+1]>Close[i+3] && Open[i+3]<Open[i+1] && Close[i+2] > ...
Because it is hard coded. You would have to completely rewrite it with loops.
 

ahhh, I never asked for this.

Thanks for helping, back to the drawing board then.