Trailing Stop Loss Multiple of ATR

This is a simple trailing stop loss line for long and short positions.

It is calculated as a multiple of the ATR instead of a percentage.

You are able to change the multiple and the ATR length.

It can be used as a guide to where you should consider putting in your stop loss on a trade and to where you should move your stop loss to as the days go by.

This indicator is experimental. Use at your own risk.
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Want to use this script on a chart?


Bro this is not getting added there is some error can you please fix it up
This will not add to my chart because of integer error in line 4. if I change the 1.4 to a whole number, then it will add (i did at local code level). Not sure why this will not allow for 1.5 anymore
Script not working? :(
this isnt working for some reason..
is there something wrong with the script?
how to get 5 deicmals point for forex ? currently only got 2 decimals points
THANK YOU!!!! THANK YOU!!! I'm going to profit from this!! $$$ :)
burgercrisis mightytrader
@mightytrader, did you?
+2 Reply