Hello,
can you please help me identify following problem - when I switch opton SetOption("ActivateStopsImmediately", True); to False, I get different numbers of trades even though the trades were not stopped on stop-loss.
using this code:
SetOption("InitialEquity",50000);
SetOption("AllowSameBarExit", 1);
SetOption("MaxOpenPositions",5);
SetOption("AccountMargin",100);
SetOption("UsePrevBarEquityForPosSizing",False);
SetOption("AllowPositionShrinking", True);
SetTradeDelays(1,1,1,1);
SetOption("ActivateStopsImmediately", True);
SetPositionSize(20,spsPercentOfEquity);
Short = ROC(C,3) > 40
AND RSI(3) > 90;
Cover = C<Ref(C,-1);
ApplyStop(stopTypeLoss,stopModePercent,25,1);
and testing stocks XSPA and EYES, range 1.1.2016 - 15.6.2018.
with SetOption("ActivateStopsImmediately", True) I get following trades:
with SetOption("ActivateStopsImmediately", False) I get following trades:
Thus there is a difference in the second XSPA trade. But why? The previous XSPA trade was a stop-loss regardless the ActivateStopsImmediately setttings..