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.
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya secara bebas dan tanpa apa-apa had – ketahui lebih di sini.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.
Skrip dilindungi
Skrip ini diterbitkan sebagai sumber tertutup. Akan tetapi, anda boleh menggunakannya secara bebas dan tanpa apa-apa had – ketahui lebih di sini.
Penafian
Maklumat dan penerbitan adalah tidak bertujuan, dan tidak membentuk, nasihat atau cadangan kewangan, pelaburan, dagangan atau jenis lain yang diberikan atau disahkan oleh TradingView. Baca lebih dalam Terma Penggunaan.