PROTECTED SOURCE SCRIPT
ATR Stop

The Stoploss based on ATR indicator sets dynamic stop levels using market volatility measured by the Average True Range (ATR).
When volatility increases, the stop widens; when it decreases, the stop tightens.
Upper line = High + ATR × Multiplier → stop for shorts
Lower line = Low - ATR × Multiplier → stop for longs
Use
- Volatility-based stoploss: adjusts automatically to market conditions.
- Trailing stop: moves in the direction of the trend.
When volatility increases, the stop widens; when it decreases, the stop tightens.
Upper line = High + ATR × Multiplier → stop for shorts
Lower line = Low - ATR × Multiplier → stop for longs
Use
- Volatility-based stoploss: adjusts automatically to market conditions.
- Trailing stop: moves in the direction of the trend.
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Protected script
This script is published as closed-source. However, you can use it freely and without any limitations – learn more here.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.