Having problem with ApplyStop using activation floor: regular backtest using "stopmodepercent" works exactly as described. "stopmodepoint" does not work at all. See code. The optimization statements are there simply to ensure all true/false combination options that might impact the function are explored, just in case.
/*
Regular portfolio backtest with 6.35.1 x64
DJ-30 watchlist
Daily bars
2.5 years
*/
opt0 = Optimize("JIC1",0,0,1,1);
opt1 = Optimize("JIC2",0,0,1,1);
opt2 = Optimize("JIC3",0,0,1,1);
opt3 = Optimize("JIC4",0,0,1,1);
SetOption( "AllowPositionShrinking", True );
SetOption( "AllowSameBarExit", opt0 );
SetOption( "ReverseSignalForcesExit", False );
SetOption( "MinShares", 1 );
SetOption( "ActivateStopsImmediately", opt1 );
SetTradeDelays(opt2,opt3,0,0);
SetPositionSize(5,spsPercentOfEquity);
BuyPrice=SellPrice=Cover=Short=Close;
Buy=Cross(EMA(C,20),EMA(C,40));
Sell=0;
// Break-Even stop with $2 activation floor does not work!!
ApplyStop(stopTypeLoss,stopModePoint,0,ExitAtStop=1,False,0,0,-1,2);