Auto trade occur same bar exit problem
SetOption("AllowSameBarExit", False );
This function can work at both backtest and real auto trade?
or it can only be used in backtest only?
For example buycon and sellcon exsist in the same bar
ma15 = ma(Close, 15);
buy = Ref (C,-1) > Ref(ma15,-1) ;
sell = C < ma15;
short = Ref (C,-1) < ref ( ma15,-1) ;
cover = C > ma(Close,15);
BUY=ExRem(BUY,SELL);
SELL=ExRem(SELL,BUY);
COVER=ExRem(COVER,SHORT);
SHORT=ExRem(SHORT,COVER);
If " SetOption("AllowSameBarExit", False ); " not work In Real Auto Trade,
How can delay the "cover and re-entry action" to next bar?
Many Thanks!!