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


-
Get the value in a condition block, draw a line here so you can visually check on back test what's happening:

-
@jstap Hi bro, at first i did the same as what you had mentioned means without variables i had directly built the condition block same as you mentioned. But the result is same.
It takes the order only if the candle ID with 2 has higher high or lower low. If candle ID with 1 has higher high or lower low, then it is not taking the calls.
Then only i had tried with variables but the result is same.
-
Draw the line so you can visually see what's happening
-
@jstap Sorry im not clear which line you are talking about? Please clarify
-
It is in the orange blocks, watch price cross this, when a trade should be placed, if not working after visually checking, report what happens here.
-
@jstap It's still the same bro. If candle ID 2 is higher high or lower low then it is putting buy / sell call but if candle ID 1 is higher high or lower low then it doesn't put any call. Please fine below attached image in which candle ID 1 has lower low but no sell call has teken.
https://fxdreema.com/shared/aK1fL86Vc

-
No sure what you are doing, but this is drawing lines and placing trades for me.
-
@jstap See there are two ways it puts buy or sell call.
Way 1: Between candle 1 & 2 range, If the Candle ID 2 has the higher high or lower low it will put buy or sell call which is actually working. Reference image below

Way 2 : Between the candle 1 & 2, If the Candle ID 1 has the higher high or lower low, it should put buy or sell call also which is actually not working. Reference image below.


-
Set this up singly, if one is not working, work on that. With a no position block, only 1 trade will be placed.
-
@jstap Tried every possible way. I said clearly "IT IS NOT WORKING" . I don't know what else i have to work on it.
Go through my EA, NO Position is for buy only, so it can take sell call. Also when the candle comes to the lower range, it closes the buy call also (Close positions block is there)
-
Then set it up singularly. You will get no help from me otherwise!
-
@jstap I said I did it already for buy separately and sell separately too. IT IS NOT WORKING.
-
O well, I said what to do. Everyone has to learn by testing!
-
@jstap Without giving any solution, don't say that you already told me what to do. Of course I learned everything on my own till this stage. But when there is a clear issue there is no proper response from your end.
-
You need to test it singularly, together it is nearly impossible to see the problem.
-
@jstap Please find the same result when tested singularly.
First image, Candle 2 high broke and took buy call. Whereas second image Candle 1 high broke but no buy call.
https://fxdreema.com/shared/hE3eO9ktc


-
I cannot test this at the moment (platform busy), but it looks like it should work, try this, no trade-condition block candle 2 high < candle1 high-condition block candle 0 x> candle 1 high. Step off of 1st condition block using yellow, with a condition block candle 0 x> candle 2 high, connect both to the same buy block and let me know what happens.
-
@jstap Still the result is same as per your mentioned chart flow. Please find attached link and images for reference. No issues with Candle ID 2 higher high or lower low break. Issue is with Candle ID 1 higher high or lower low break only. Please assist.
https://fxdreema.com/shared/TAsmTMy1b


-
This must be a MT problem, run on back test and see how often it misses trades.