OPEN-SOURCE SCRIPT
Updated

Z Score (Multi-Timeframe)

174
This indicator plots the Z-score of price based on a user-defined timeframe and length. The Z-score measures how far the current price deviates from its historical mean in terms of standard deviations, making it ideal for identifying overbought and oversold conditions in mean reversion setups.

Features:

Adjustable lookback period and standard deviation thresholds

Selectable source price (e.g., close, hl2, ohlc4)

Multi-timeframe support for higher-timeframe confluence

Clean subgraph layout with visual reference lines at ±1 and ±2 standard deviations

This tool is best used in confluence with other indicators or price action for scalping, swing trading, or momentum fading strategies.
Release Notes
This indicator plots the Z-score of price based on a user-defined timeframe and length. The Z-score measures how far the current price deviates from its historical mean in terms of standard deviations, making it ideal for identifying overbought and oversold conditions in mean reversion setups.

Features:

Adjustable lookback period and standard deviation thresholds

Selectable source price (e.g., close, hl2, ohlc4)

Multi-timeframe support for higher-timeframe confluence

Clean subgraph layout with visual reference lines at ±1 and ±2 standard deviations

This tool is best used in confluence with other indicators or price action for scalping, swing trading, or momentum fading strategies.
Release Notes
Z Score (Multi-Timeframe) — v1.1 Patch Notes

Changed horizontal lines to dashed style for clarity

Increased zero line thickness for better visibility

Set default Z-score color to forest green cause I felt like it.

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.