Hi guys, so this code below is my trailing stop which is chandelier stop. but what i want is to trailing stop not to drop when the price is dropping. I want the trailing stop to stay when the price is dropping (See purple line). Can anyone fix my code below? Many thanks! sorry if my english is bad
//Stoploss
_SECTION_BEGIN("ChandelierStop");
ATRRange = Param("ATRRange", 2,1,60,0.5);
ATRMult = Param ("ATRMult", 1.5, 0.5,10,0.1 );
ExitPrice = C - ATRMult*ATR(ATRRange);
LastExitPrice = HighestSince(Buy,ExitPrice,1);
Sell = L < LastExitPrice;