PROTECTED SOURCE SCRIPT

EAB: Distance (%) to EMAs/MAs

22
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.

คำจำกัดสิทธิ์ความรับผิดชอบ

ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน