Help for customized ATR stop loss

I All,
i want to create a simple stop loss system based on 2xATR. But i want the stop-system start to trigger only when the closing price goes under the price i bought.

I need the variable of the “price i bought”.

someone could help me ?


Please read the manual:
it contains the code for ATR chandelier stop. What you are asking for is the same but you need to change stop type from trailing to MaxLoss and use ExitAtStop = False.

1 Like