OPEN-SOURCE SCRIPT
ADR & ATR Extension from EMA

This indicator helps identify how extended the current price is from a chosen Exponential Moving Average (EMA) in terms of both Average Daily Range (ADR) and Average True Range (ATR).
It calculates:
ADR Extension = (Price - EMA) / ADR
ATR Extension = (Price - EMA) / ATR
The results are shown in a floating table on the chart.
The ADR line turns red if the price is more than 4 ADRs above the selected EMA
Customization Options:
- Select EMA length
- Choose between close or high as price input
- Set ADR and ATR periods
- Customize the label’s position, color, and transparency
- Use the chart's timeframe or a fixed timeframe
It calculates:
ADR Extension = (Price - EMA) / ADR
ATR Extension = (Price - EMA) / ATR
The results are shown in a floating table on the chart.
The ADR line turns red if the price is more than 4 ADRs above the selected EMA
Customization Options:
- Select EMA length
- Choose between close or high as price input
- Set ADR and ATR periods
- Customize the label’s position, color, and transparency
- Use the chart's timeframe or a fixed timeframe
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.