Stop 2nd trade in same direction / signal. (Wants one trade in each direction)
-
hi
https://fxdreema.com/shared/vZqVX7OUb
My demo EA is opening 2nd trade in same direction after TP reached,
I need EA not to open second trade in same direction and wait Candle to close opposite direction of MA for searching new trade.
Current Scenario:
Open trade when
candle above ma 200 and RSI is above 70
-
@safeer992 There are various ways, the easiest is probably, every time a trade is placed turn off the flag and turn on another, when the oposite trade is placed turn on/off the opposite flags, this will make the EA buy then sell then buy then sell etc.
-
@jstap thank you so much for your valuable reply.
Where is the flag block for MT5!
-
@safeer992 On the left in green, easiest is the bool true/false flag.
-
@jstap thank you so much
I am little confuse. Should i add flag block on start or on end because i am new to usage of this block.
Further, do i need variables for add flag block on this EA -
@safeer992 Above buy/sell check flag, below buy/sell set flags.
-
@jstap Thanks
I added the flags but I think i select wrong criteria.
It is only buying at 1st opportunity and then not taking any trade. Not on buy side nor on sell side. -
@jstap I think I got it.
Let me test and will advise -
@safeer992 Set them like this.
