OPEN-SOURCE SCRIPT

ATR Trailing Stop (modified/unmodified)

65
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.

Exención de responsabilidad

La información y las publicaciones que ofrecemos, no implican ni constituyen un asesoramiento financiero, ni de inversión, trading o cualquier otro tipo de consejo o recomendación emitida o respaldada por TradingView. Puede obtener información adicional en las Condiciones de uso.