SetBacktestMode( backtestRegularRawMulti );
Buy = 1;
Sell = Short = Cover = 0;
StopLevel = Param("N-bars", 1, 1, 100, 1 );
ApplyStop( stopTypeNBar, stopModeBars, StopLevel, 1, False, 0 );
BuyPrice = C;
SellPrice = O;
SetOption("InitialEquity", 100000);
SetOption("FuturesMode"...