EA is not stopping to mark high and low of candle.
-
Good day
Can anyone please help as EA is running the condition again and again and marking high and low of candle. I want EA to stop looking new high and low till TP/SL hits of current condition.
I am using No trade/order BLOCK but it is stopping EA to take multiple trades in 1 side. Means that high of range broke and EA make a buy trade. Then low of candle broke and EA takes sell trade. Price again goes up-word and hits high of range again but EA is not taking 2nd buy trade. EA should take 1 more buy trade as I need EA to make range valid again if price goes opposite direction.
https://fxdreema.com/shared/rg8pNh1Oc

-
@Safeer992
One solution is to declare an integer variable which will be initiated with a value of 0(=no position); give it a value of -1 when a short(sell) position is opened; give it a value of 1 when a long(buy) position is opened.
Add a condition stating : sell if variable = 0 or 1 ; buy if variable = 0 or -1.
This being said, be aware that these kind of "strategies" are smoke and mirrors, will make you loose money. You need inquiring seriously about it.