There is some problem in pending limit order to long and short in one strategy.
it is impossible insert short limit order and long limit order at once time.
I used this arguments:
if (GetCurrentBid() > EMA(50)[0]) EnterLongLimit(0,true,1,EMA(50)[0], "B1-EMA50");
if (GetCurrentBid() > EMA(200)[0]) EnterShortLimit(0,true,1,EMA(200)[0], "S1-EMA200");
Although both conditions are true, strategy insert only first order.
Is any solution?
Btw. How can I cancel limit order by command? I tried CancelOrder( "B1-EMA50"), but unsuccessfully.
Thank
Comment