Multi-Mode Trailing Stop

Published on MillionChart by QuantGhost.

A trailing stop with five selectable methods: ATR / Supertrend, Chandelier, Donchian, standard-deviation channel and a fixed percentage. It draws the stop as a ratcheting line with a three-band envelope around it (safe, watch and critical zones) and marks the bars where the trend flips. A compact panel states the active method, which side the stop sits on, its current price, the distance from the close in price and in ATR multiples, and how much buffer is left before the stop is touched, from safe through watch to critical. Alerts are available for trend flips, closes through the stop and the critical-zone warning. Settings: method and its length and multiplier, the buffer thresholds, colours, band transparency and the panel position.

Notes: a trailing stop follows price and lags it by design; it describes where an exit would sit, it is not a forecast and it works on any symbol and timeframe.

Based on an open-source indicator by RedKTrader (MPL-2.0). Author: https://www.tradingview.com/u/RedKTrader/