URGENT: BUY COUNT CONDATION
-
Dears,
thanks in advance
i want to make ea open buy only if the sells count more than the buys by 2 trade
and the opposite open sell only if the buys trades more than the sells by 2 trades -
@smartcity-0 Do you mean open or closed trades? Are they supposed to be open at the same time?
-
@l-andorrà said in URGENT: BUY COUNT CONDATION:
@smartcity-0 Do you mean open or closed trades? Are they supposed to be open at the same time?
thanks for ur reply
for example the condition to take buy is bull candle and sell for bear candle
every bull candle take buy and every bear take sell
i want to take buy only if sell trades > buy trade by 2 trades ( if there is 3 sells and 1 buy ) don't take sell any more and just take buy depend on the condition
ea start and open buy trade
and after this there is sell signal will open sell
after this sell signal again will open sell
if there is buy signal will open buy
now 2 sell 2 buy
if there is sell signal will open sell if agiain sell will open sell
now 4 sell 2 buy
if there is sell again will not take
will open only buy trades
i hope u got my point -
@smartcity-0 But how is the EA supposed to distinguish when the 'condition' for a buy or a sell is happening? Apparently it is independent from the initial number of open buys and sells, right? I'm afraid I don't get that part, sorry.
-
@l-andorrà thanks for your reply
https://fxdreema.com/shared/cJed4mTF -
@smartcity-0 You need to add a condition block below both 'no position' block like this:

Obviously you need to modify it for sells.