How to: Limit ZigZag Bars

 

hi,


I have just a small question in case anyone knows.


I would like to add to the attached ZigZagWithValue.mq4 indicator an option to only calculate/display a limited number of past ZigZag points.

e.g from Current price 10 or 23 or xx... ZigZag points back.


Any idea how to go about it.


Thanks so much.


MJ

Files:
Reason: