OPEN-SOURCE SCRIPT

Simple Moving Average - ATR Trailing Stop

The old adage goes "Cut losers fast and let the winners run"

With this in mind, this will plot a dynamic trailing stop by subtracting any multiplier of the Average True Range (ATR) from the SMA of your choice.
ATRCandlestick AnalysisSimple Moving Average (SMA)smatrailingtrailingstoptrailingstoploss

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 publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer