OPEN-SOURCE SCRIPT
Updated

Normalized Dist from 4H MA200 + Chart Highlights

73
Normalized Distance from 4H EMA200 + Highlighting Extremes

This indicator measures the distance between the current price and the 4-hour EMA200, normalized into a z-score to detect statistically significant deviations.

🔹 The lower pane shows the normalized z-score.
🔹 Green background = price far below EMA200 (z < -2).
🔹 Red background = price far above EMA200 (z > 3.1).
🔹 These thresholds are user-configurable.
🔹 On the main chart:
  🟥 Red candles indicate overheated prices (z > upper threshold)
  🟩 Green candles signal oversold conditions (z < lower threshold)

The EMA200 is always taken from a fixed 4H timeframe, regardless of your current chart resolution.

Release Notes
Normalized Distance from 4H EMA200 + Highlighting Extremes

This indicator measures the distance between the current price and the 4-hour EMA200, normalized into a z-score to detect statistically significant deviations.

🔹 The lower pane shows the normalized z-score.
🔹 Green background = price far below EMA200 (z < -2).
🔹 Red background = price far above EMA200 (z > 3.1).
🔹 These thresholds are user-configurable.
🔹 On the main chart:
  🟥 Red candles indicate overheated prices (z > upper threshold)
  🟩 Green candles signal oversold conditions (z < lower threshold)

The EMA200 is always taken from a fixed 4H timeframe, regardless of your current chart resolution.

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.