--- In [email protected], Howard B <howardba...@...> wrote: > > Hi Jolly -- > > Something like this:? > > TrailingStopPercentage = 2.5; // percentage points > ApplyStop(StopTypeTrailing,StopModePercent,TrailingStopPercentage,1);
Hello Howard, Yes thanks the basics I am familiar with but in the context of the thread started by Joe, the "amount" like below here does not work correctly. To me it says if the closing price now is less than the buy price * 1.50 then the trailing stop is set at 5 * ATR(14), if not then 2 * ATR(14) . Buy = Cross(RSI(), 30); Sell = 0; Trail = IIf(C < (BuyPrice * 1.50), 5 * ATR(14), 2 * ATR(14)); ApplyStop(stopTypeTrailing, stopModePoint, Trail, 2); While a backtest shows a 5*ATR(14) is applied even though the buy price has doubled. It is most likely my statement. Thanks for your help again.
