OPEN-SOURCE SCRIPT

Alpha Spread Indicator Panel - [AlphaGroup.Live]

125
Alpha Spread Indicator Panel – [AlphaGroup.Live]

This sub-panel plots the OLS spread between two assets, normalized into percent.
Green area = spread above zero (Buy Leg1 / Sell Leg2)
Red area = spread below zero (Sell Leg1 / Buy Leg2)
• The white line shows the exact % deviation of the spread from its fitted baseline
• Optional ±1% and ±2% guides give clear statistical thresholds

Because it’s expressed in percent relative to midprice, the scale remains consistent even if absolute prices change over years.

⚠️ Important: This panel is designed to be used together with the overlay chart:
👉 Alpha Spread Indicator Chart – [AlphaGroup.Live]

Pre-selected asset pairs included:
EURUSD / GBPUSD
AUDUSD / NZDUSD
USDJPY / USDCHF
USDCAD / USDNOK
EURJPY / GBPJPY
AUDJPY / NZDJPY
XAUUSD / XAGUSD
WTI (USOIL) / Brent (UKOIL)
NatGas / Crude
HeatingOil / RBOB
Corn / Wheat
Platinum / Palladium
XOM / CVX
KO / PEP
V / MA
JPM / BAC
NVDA / AMD
BHP / RIO
SHEL / BP
SPY / QQQ

Want more institutional-grade setups? Get our 100 Trading Strategies eBook free at:
alphagroup.live/100-trading-strategies

Tags: pairs-trading, spread-trading, statistical-arbitrage, ols-regression, zscore, mean-reversion, arbitrage, quant, hedge, alphagroup

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。