High/Low price in range of candles in not working.
-
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


-
Put the in a condition block, draw this line so you can visually check what's happening:

-
@jstap That was my first EA without variables. But the result is still the same.
-
Draw a line so you can visually check
-
@jstap Linked "Draw Line" and did the back test for last 3 months. But it's still the same. Out of candle ID 1 &2, it takes call only if Candle ID 2 is having higher high or lower low. If candle ID 1 has higher high or lower low then no calls taken.
On the below attached image, Candle ID 1 lower low is marked where it has to go for sell but not taken.
https://fxdreema.com/shared/aK1fL86Vc
