Raising a Trailing ATR Stop using FLIP function. Could someone please fix this ApplyStop function? I have wrong syntax to do the business. The percent I think [:*] . ApplyStop is the only Sell method used.
Any suggestions to correct, improve or simplify ApplyStop to work when called and not independent would be good schooling. Thanx. RaiseStop = (C > ValueWhen(Buy, O) )* 1.50; // Close price now is greater than buy price by 50% Trail = IIf(RaiseStop, 5* ATR(14), 2* ATR(14)); // Trailing stop is 5 * ATR if % change less than 50% ApplyStop(stopTypeTrailing, stopModePoint, Trail, 2);
