Can someone help me with High Low conditions please
-
I'm trying to make an EA that Buy when High [0] > High [1] and close the buy trade when Low [0] < Low [1]
and the opposite for selling as well
I tried many times but when I test it, it doesn't open any trade and don't know why ??
any help is appreciated
-
It is not posible to evaluate "High [0]" because it is the most recent bar opened. Then, the bar's High is not a "right" value.
You should try High [1] > High [2], it should work.
-
Thanks for your reply
I got what you mean, so how can I make it for the price when it breaks the high or low of the last bar?
-
i think when candle 0 close (floating) goes up (higher then open, and come back down, then that will become High? of course until the candle closes, that high still remains 'high' right?
-
I think what you want to evaluate is something like this: if the current Price (Ask/Bid) raises above the High[1] or falls below Low[1], enter Long or Short.
Is that what you want to do?
-
@josecortesllobat
yes that is exactly what I want to do and also for closing the trade as well, but I couldn't make it here if you could please share with me the tree and conditions -
This might be work but it has not been checked,

You can shift the "Price" field to Bid or Ask as per your convenience.

-
Thank you so much for your help
the last thing I need to find is how can I disable the SL and TP because it's already set to 50 pips by default
Regards,
-
At the dropdown menĂº you have those options
