OPEN-SOURCE SCRIPT
Aggiornato KosATR

What this Pine Script does:
✅ This indicator displays daily ATR (Average True Range) information on any chart timeframe (minutes, hours, etc.), ensuring the calculations are based strictly on daily price data.
Displayed Information in the Table:
The script creates a table in the bottom-left corner of the chart that shows:
ATR — A custom, filtered version of the daily ATR that excludes abnormal price bars (extremely large or small daily ranges).
% — The percentage of the ATR that today's price movement (Open to Close) has covered so far.
Level — A manually defined fixed level, set through the script's input.
Level + ATR — The sum of the daily ATR and your defined level, useful for setting price targets or alerts.
Key Features:
Uses request.security() to ensure all calculations (high, low, open, close) are taken from the daily timeframe, even when you're viewing lower or higher timeframes.
Implements a filtering method to calculate an "adaptive ATR," ignoring price ranges that are too large or too small (outliers), making the ATR value more stable and realistic.
Displays a live, easy-to-read table directly on the chart for quick reference during trading.
Summary:
This script provides traders with reliable, daily-based ATR data, helping assess current price movement strength relative to historical daily volatility. It's especially useful for intraday traders who want constant awareness of daily ATR levels, regardless of their current chart timeframe.
✅ This indicator displays daily ATR (Average True Range) information on any chart timeframe (minutes, hours, etc.), ensuring the calculations are based strictly on daily price data.
Displayed Information in the Table:
The script creates a table in the bottom-left corner of the chart that shows:
ATR — A custom, filtered version of the daily ATR that excludes abnormal price bars (extremely large or small daily ranges).
% — The percentage of the ATR that today's price movement (Open to Close) has covered so far.
Level — A manually defined fixed level, set through the script's input.
Level + ATR — The sum of the daily ATR and your defined level, useful for setting price targets or alerts.
Key Features:
Uses request.security() to ensure all calculations (high, low, open, close) are taken from the daily timeframe, even when you're viewing lower or higher timeframes.
Implements a filtering method to calculate an "adaptive ATR," ignoring price ranges that are too large or too small (outliers), making the ATR value more stable and realistic.
Displays a live, easy-to-read table directly on the chart for quick reference during trading.
Summary:
This script provides traders with reliable, daily-based ATR data, helping assess current price movement strength relative to historical daily volatility. It's especially useful for intraday traders who want constant awareness of daily ATR levels, regardless of their current chart timeframe.
Note di rilascio
Corrected the bar filtering function — it now works properly.Note di rilascio
✅ The number of table columns changes dynamically.✅ Table headers are displayed optionally.
✅ The columns with levels can be hidden with a separate checkbox.
✅ Динамически меняется количество столбцов таблицы.
✅ Заголовки отображаются по желанию.
✅ Столбцы с уровнями можно убрать отдельной галочкой
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.