PROTECTED SOURCE SCRIPT
D2E (Distance to EMA)

D2E (Distance to EMA) measures how far price is from its daily Exponential Moving Average (EMA), both as a percentage and in dollar terms. It helps traders quickly assess how extended price is from its mean, making it useful for spotting overbought/oversold conditions, pullback opportunities, or trend exhaustion.
The indicator optionally plots threshold zones as bands on the chart: yellow lines mark a standard deviation based on a user-defined % distance, while red lines flag more extreme moves. When price crosses these thresholds, it may suggest potential reversals or continuation depending on context.
A compact on-chart table shows the current EMA, % deviation, and dollar difference from price. Text color changes based on how far price has moved—green (normal), yellow (near threshold), or red (beyond extreme).
Customizable settings include:
• EMA Length (default 20)
• Threshold % and Extreme Threshold %
• Table Position (top/bottom left/right)
• Table Font Size (Tiny to Huge)
Threshold lines are hidden by default but can be toggled on via the Style tab, where you can also adjust their color and thickness.
Built-in alert conditions are included for when price crosses above or below either threshold level.
The indicator optionally plots threshold zones as bands on the chart: yellow lines mark a standard deviation based on a user-defined % distance, while red lines flag more extreme moves. When price crosses these thresholds, it may suggest potential reversals or continuation depending on context.
A compact on-chart table shows the current EMA, % deviation, and dollar difference from price. Text color changes based on how far price has moved—green (normal), yellow (near threshold), or red (beyond extreme).
Customizable settings include:
• EMA Length (default 20)
• Threshold % and Extreme Threshold %
• Table Position (top/bottom left/right)
• Table Font Size (Tiny to Huge)
Threshold lines are hidden by default but can be toggled on via the Style tab, where you can also adjust their color and thickness.
Built-in alert conditions are included for when price crosses above or below either threshold level.
보호된 스크립트입니다
이 스크립트는 비공개 소스로 게시됩니다. 하지만 제한 없이 자유롭게 사용할 수 있습니다 — 여기에서 자세히 알아보기.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.
보호된 스크립트입니다
이 스크립트는 비공개 소스로 게시됩니다. 하지만 제한 없이 자유롭게 사용할 수 있습니다 — 여기에서 자세히 알아보기.
면책사항
이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.