OPEN-SOURCE SCRIPT
Realtime ATR-Based Stop Loss Numerical Overlay

Realtime ATR-Based Stop Loss Numerical Overlay
A simple, effective tool for dynamic risk management based on ATR (Average True Range) without adding cluttered and distracting lines all over your chart.
📌 Description
This script plots a real-time stop loss level using the Average True Range (ATR) on your chart, helping you set consistent, volatility-based stops. It supports both:
✅ Current chart timeframe
✅ Custom fixed timeframe inputs (1m, 5m, 15m, 1h, etc.)
The stop level is calculated as:
Stop = ATR × Multiplier
and updates in real-time. An overlay table displays on the bottom-right of your chart with the calculated stop value in a clean, simple way.
⚙️ Settings
ATR Timeframe Source:
Choose between using the current chart's timeframe or a fixed one (e.g. 5, 15, 60, D, etc).
ATR Length:
Period used to calculate the ATR (default is 14).
Stop Loss Multiplier:
Multiplies the ATR value to define your stop (e.g., 1.5 × ATR).
Wait for Timeframe Closes:
If enabled, the ATR value waits for the selected timeframe’s candle to close before updating. If unselected, it will update in real time.
🛠️ How to Use
Add this script to your chart from your indicators list.
Configure your desired timeframe, ATR length, and multiplier in the settings panel.
Use the value shown in the table overlay as your suggested stop loss distance from entry.
Adjust your position sizing accordingly to fit your risk tolerance.
This tool is especially useful for traders looking for adaptive risk management that evolves with market volatility — whether scalping intraday or swing trading.
💡 Pro Tip
The ATR stop can also be used to dynamically trail your stop behind price movement.
A simple, effective tool for dynamic risk management based on ATR (Average True Range) without adding cluttered and distracting lines all over your chart.
📌 Description
This script plots a real-time stop loss level using the Average True Range (ATR) on your chart, helping you set consistent, volatility-based stops. It supports both:
✅ Current chart timeframe
✅ Custom fixed timeframe inputs (1m, 5m, 15m, 1h, etc.)
The stop level is calculated as:
Stop = ATR × Multiplier
and updates in real-time. An overlay table displays on the bottom-right of your chart with the calculated stop value in a clean, simple way.
⚙️ Settings
ATR Timeframe Source:
Choose between using the current chart's timeframe or a fixed one (e.g. 5, 15, 60, D, etc).
ATR Length:
Period used to calculate the ATR (default is 14).
Stop Loss Multiplier:
Multiplies the ATR value to define your stop (e.g., 1.5 × ATR).
Wait for Timeframe Closes:
If enabled, the ATR value waits for the selected timeframe’s candle to close before updating. If unselected, it will update in real time.
🛠️ How to Use
Add this script to your chart from your indicators list.
Configure your desired timeframe, ATR length, and multiplier in the settings panel.
Use the value shown in the table overlay as your suggested stop loss distance from entry.
Adjust your position sizing accordingly to fit your risk tolerance.
This tool is especially useful for traders looking for adaptive risk management that evolves with market volatility — whether scalping intraday or swing trading.
💡 Pro Tip
The ATR stop can also be used to dynamically trail your stop behind price movement.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.