Hello All,
I'm trying to determine the greater retrace in price that has occurred on a chart within say that last 100 candles. By greatest retrace I mean the maximum distance in pips that has occurred from a Highest High to a Lowest Low over this 100 candle period.
The attached ZigZag indicator which I found on this site is really useful as it provides the number of pips and candles for each leg of the zig zag but I do not know how to modify it in order to provide what I'm after.
Can anyone offer any insights or advice as to how I might be able to achieve this?
In essence using the attached indicator as a starting point, I want to look back over the last 100 candles and output the number of pips for the biggest down leg over this period, so that my EA can then use this information.
Thanks in advance,
Chorlton
I'm trying to determine the greater retrace in price that has occurred on a chart within say that last 100 candles. By greatest retrace I mean the maximum distance in pips that has occurred from a Highest High to a Lowest Low over this 100 candle period.
The attached ZigZag indicator which I found on this site is really useful as it provides the number of pips and candles for each leg of the zig zag but I do not know how to modify it in order to provide what I'm after.
Can anyone offer any insights or advice as to how I might be able to achieve this?
In essence using the attached indicator as a starting point, I want to look back over the last 100 candles and output the number of pips for the biggest down leg over this period, so that my EA can then use this information.
Thanks in advance,
Chorlton
Attached File(s)
ZigZagWithValue_Bars.mq4
9 KB
|
334 downloads