Hi friends,
Please find below link with attached images in which the current candle with ID 0 will compare the last 2 candles with ID 1 & 2. It takes the high price from these 2 candles and when the current candle price breaks the high price it should put buy order.
Here the issue is if the price of the candle with ID 2 is high than candle with ID 1, then it is putting buy call which is showed in picture1 where you can see the call taken.
But if the price of the candle with ID 1 is high than candle with ID 2, then it is not putting the buy call which is showed in Pictuer2. Need solution for this .
I had attached my EA link here with for your valuable suggestions.
https://fxdreema.com/shared/5Bf2hSiMc

