OPEN-SOURCE SCRIPT
Average Two Sources - Z-Score [supruzr]

Average Two Sources – Z-Score
This utility indicator lets you combine and compare any two sources on a common scale using Z‑score normalization. It’s designed for cases where you want to blend indicators or prices that live on different value ranges.
How it works
Each source is converted to a Z‑score over the selected Normalization Period (value minus mean, divided by standard deviation).
The script plots both Z‑scores plus their simple average.
A value above 0 means the source is above its recent mean; below 0 means it’s below its recent mean.
Typical uses
Combine two different oscillators (e.g., RSI + custom momentum) into a single averaged signal.
Blend price‑based data with breadth, volume, or volatility measures.
Quickly see when both inputs are stretched in the same direction versus when they diverge.
Inputs
Source 1 / Source 2: Any price or indicator output.
Normalization Period: Lookback length used to compute Z‑scores (default 20).
Created by supruzr.
This utility indicator lets you combine and compare any two sources on a common scale using Z‑score normalization. It’s designed for cases where you want to blend indicators or prices that live on different value ranges.
How it works
Each source is converted to a Z‑score over the selected Normalization Period (value minus mean, divided by standard deviation).
The script plots both Z‑scores plus their simple average.
A value above 0 means the source is above its recent mean; below 0 means it’s below its recent mean.
Typical uses
Combine two different oscillators (e.g., RSI + custom momentum) into a single averaged signal.
Blend price‑based data with breadth, volume, or volatility measures.
Quickly see when both inputs are stretched in the same direction versus when they diverge.
Inputs
Source 1 / Source 2: Any price or indicator output.
Normalization Period: Lookback length used to compute Z‑scores (default 20).
Created by supruzr.
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。