PROTECTED SOURCE SCRIPT
Distance from 200 EMA (HUD)

What it does:
A minimal, on-chart heads-up display that shows the real-time percentage distance between price and the 200-period EMA on your current timeframe. No lower pane, no clutter—just a small box in the top-right with “Distance from 200 EMA” and the live % value.
Why it’s useful:
Quickly quantify trend and extension: positive values = price above the 200 EMA; negative values = below.
Spot overextension and potential mean-reversion zones without measuring by hand.
Keep the chart clean while maintaining constant awareness of how stretched price is from the long-term mean.
How it works
The indicator calculates (Close − EMA(200)) / EMA(200) × 100 on whatever timeframe your chart is set to, then displays that percentage as a compact table overlay. It updates in real time as price and timeframe change.
Typical use cases
Trend filter: trade with the primary bias (above = long bias, below = short bias).
Extremes & pullbacks: define your own “extreme” thresholds (e.g., ±X%) to allow counter-trend fades or to anticipate pullbacks toward the EMA.
Multi-timeframe alignment: flip between H1/H4/D1 and instantly see extension on each timeframe.
Settings
EMA Length (default 200)
Decimals (rounding)
Color by sign (optional green/red background)
Notes
Works on any market and timeframe supported by TradingView.
The value is percentage distance, not pips or ticks.
Pair it with your price-action tools (swing highs/lows, liquidity levels) and volume/OI reads for higher-quality decisions.
Risk reminder
This is an information tool, not a signal generator. Manage risk strictly (I risk ≤1% per trade by default).
If you find this helpful:
❤️ Boost the script
⭐ Follow my profile for more tools
💬 Comment with feedback or feature ideas
🔗 Considering TradingView? Use my referral link tradingview.com/pricing/?share_your_love=Trading_Soldier to support the work—thank you!
A minimal, on-chart heads-up display that shows the real-time percentage distance between price and the 200-period EMA on your current timeframe. No lower pane, no clutter—just a small box in the top-right with “Distance from 200 EMA” and the live % value.
Why it’s useful:
Quickly quantify trend and extension: positive values = price above the 200 EMA; negative values = below.
Spot overextension and potential mean-reversion zones without measuring by hand.
Keep the chart clean while maintaining constant awareness of how stretched price is from the long-term mean.
How it works
The indicator calculates (Close − EMA(200)) / EMA(200) × 100 on whatever timeframe your chart is set to, then displays that percentage as a compact table overlay. It updates in real time as price and timeframe change.
Typical use cases
Trend filter: trade with the primary bias (above = long bias, below = short bias).
Extremes & pullbacks: define your own “extreme” thresholds (e.g., ±X%) to allow counter-trend fades or to anticipate pullbacks toward the EMA.
Multi-timeframe alignment: flip between H1/H4/D1 and instantly see extension on each timeframe.
Settings
EMA Length (default 200)
Decimals (rounding)
Color by sign (optional green/red background)
Notes
Works on any market and timeframe supported by TradingView.
The value is percentage distance, not pips or ticks.
Pair it with your price-action tools (swing highs/lows, liquidity levels) and volume/OI reads for higher-quality decisions.
Risk reminder
This is an information tool, not a signal generator. Manage risk strictly (I risk ≤1% per trade by default).
If you find this helpful:
❤️ Boost the script
⭐ Follow my profile for more tools
💬 Comment with feedback or feature ideas
🔗 Considering TradingView? Use my referral link tradingview.com/pricing/?share_your_love=Trading_Soldier to support the work—thank you!
보호된 스크립트입니다
이 스크립트는 비공개 소스로 게시됩니다. 하지만 제한 없이 자유롭게 사용할 수 있습니다 — 여기에서 자세히 알아보기.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.
보호된 스크립트입니다
이 스크립트는 비공개 소스로 게시됩니다. 하지만 제한 없이 자유롭게 사용할 수 있습니다 — 여기에서 자세히 알아보기.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.