OPEN-SOURCE SCRIPT

ATR Trailing Stop (modified/unmodified)

69
This Pine Script (v6) implements a customizable ATR Trailing Stop indicator with both modified and unmodified modes.

It calculates ATR using one of four averaging types: SIMPLE, EMA, RMA, or WMA.

The modified mode locks the stop line in one direction to avoid frequent flips.

The script plots a dynamic stop line that trails price, colors bars by trend direction, and marks Long (L) and Short (S) entry signals when price crosses the trailing stop.

Haftungsausschluss

Die Informationen und Veröffentlichungen sind nicht als Finanz-, Anlage-, Handels- oder andere Arten von Ratschlägen oder Empfehlungen gedacht, die von TradingView bereitgestellt oder gebilligt werden, und stellen diese nicht dar. Lesen Sie mehr in den Nutzungsbedingungen.