i was reading the user guide and was interesred in using multiple stops
i was using this code and im not sure if i wrote it correctly.
the idea is to have a stop loss of 5% and if it doesnt get stopped then have a trailng stop of ten percent.
is this the correct way to write it?
SetPositionSize(10, spsPercentOfEquity);
SetOption("MaxOpenPositions", 10);
BuySignal = C > MA(C, 100);
Buy = BuySignal;
Sell = 0;
ApplyStop( stopTypeLoss, stopModePercent, 5, True, False, 0, 0 /precedence/ );
ApplyStop( stopTypeTrailing, stopModePercent, 10, True, False, 0, 1 /precedence/ );
ApplyStop( stopTypeProfit, stopModeDisable, 0, True, False, 0, 2 /precedence/ );
ApplyStop( stopTypeNBar, stopModeDisable, 0, False, False, 0, 3 /precedence/ );