PROTECTED SOURCE SCRIPT
EAB: Distance (%) to EMAs/MAs

RPL: Distance (%) to EMAs/MAs displays a compact table showing the percentage distance between the current price and selected moving averages, helping to quickly assess price extension relative to key technical references.
Features
• Distance to EMA 10, EMA 20, MA 50 and MA 200 (individually toggleable).
• Up to two custom moving averages, with selectable EMA or MA type and configurable period.
• Customizable colors, opacity, text size and vertical offset to fit the table cleanly on the chart.
How to use
1. Enable or disable moving averages from the “Show” section.
2. To add another average, enable “Custom Moving Average 1/2” and define its type and period.
3. Adjust the visual style from the “Table” section (colors, opacity, size and position).
Notes
• Distance is calculated as: (Close − Moving Average) / Moving Average × 100.
• Informational indicator only; no entry or exit signals are provided.
Features
• Distance to EMA 10, EMA 20, MA 50 and MA 200 (individually toggleable).
• Up to two custom moving averages, with selectable EMA or MA type and configurable period.
• Customizable colors, opacity, text size and vertical offset to fit the table cleanly on the chart.
How to use
1. Enable or disable moving averages from the “Show” section.
2. To add another average, enable “Custom Moving Average 1/2” and define its type and period.
3. Adjust the visual style from the “Table” section (colors, opacity, size and position).
Notes
• Distance is calculated as: (Close − Moving Average) / Moving Average × 100.
• Informational indicator only; no entry or exit signals are provided.
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.