This script plots a trailing stop of the ATR multiplied by a user-defined number. Since it is meant to be used as a trailing stop, the value doesn't fluctuate with the price as a normal ATR indicator does, but stays fixed unless price moves away from it. In that case it follows the price. If price crosses the stop level, it resets itself based on current price and starts trailing all over again.
- Support - Use for a trailing stop while long
- Resistance - Use for a trailing stop while short
- Both - Acts like a channel and can spot periods of lower volatility