Please help. How to place arrow at previous highest resistance within 10 candles,20 candles, 30 candles and so on
-
How do i make ea draw arrow at highest candle price within 10 candle? Then draw another arrow at highest price within 20 candles and so on...
-
When you say resistance you mean highest high/ lowesto low within those candle groups?
-
Yes. That is what I mean. Place arrow at highest high/low with those candles
-
First problem is that EA work forward not back.
Maybe and this is not about Ea but about strategy it will be better to use indicator i can recomend to you
3 level zz semafor
https://www.best-metatrader-indicators.com/3-level-zz-semafor/but if you still want this level high and low. I did it some time ago like this.
I wrotte highh wick to formula and wrotte it to variables then compare with next candle and repeat it like 10 times let say.
but maybe it another solution. -
You can also try this:

This block will draw a line on the highest high of the last 10 candles. You will need another one for the lowest low line.
-
@varso . Thanks. I shall try it and see if i can make it part of my startegy