Bullion Dollar StatArb Gauge Loop MT5

  • 지표
  • Anthony Cooke
    Anthony Cooke
    Quantitative Systems Architect and C++, Python, MQL5, MQL4, and Pine Script developer specializing in non-repainting mathematical indicators, Expert Advisors, and statistical strategy audits. I combine industrial quality-control engineering and Applied Mathematics with multi-physics market modeling
  • 버전: 1.10
  • 활성화: 5

Overview & Scientific Origin

The Bullion Dollar StatArb Gauge Loop is an institutional quantitative indicator engineered from Quantitative Pairs Trading (Statistical Arbitrage) and Lattice Gauge Theory (Theoretical Physics). Institutional prop desks use rolling Ordinary Least Squares (OLS) dynamic hedge ratios to measure when two correlated markets diverge abnormally far from fair value, while physicists use Wilson Gauge Loop Phase Holonomy to measure rotational flux and lead-lag curvature around closed state-space loops. Combining both frameworks into a single strictly causal, non-repainting subwindow oscillator (-4.5 to +4.5), this tool exposes relative mispricing and cross-market capital rotation for Gold (XAUUSD), Silver (XAGUSD), Major Forex pairs, and US Indices.


Mathematical Mechanism & Visual Guide

Rather than relying on static correlation numbers that fail when volatility changes, the engine recalculates the exact log-price relationship between your chart symbol and your chosen benchmark on every closed bar:

- Dual-Color OLS Spread Z-Score Histogram (StatArb_Pos & StatArb_Neg): Across your rolling lookback window (InpPeriod = 55), the algorithm computes the live OLS hedge ratio (β) and normalizes the residual mispricing spread into an intuitive two-color histogram—MediumSeaGreen bars above 0.0 highlight positive spread stretching (overbought relative to the benchmark), while OrangeRed bars below 0.0 highlight negative spread stretching (oversold relative to the benchmark).

- Smoothed Wilson Gauge Loop Flux (Gauge_Loop_Flux): Across a faster phase window (InpLoopWindow = 13), the indicator calculates the discrete Wilson loop area in standardized two-asset state space. To ensure ultra-clean visual readability without flatlining against chart borders, the loop is rolling mean-centered, smoothed via a 3-bar EMA, and smoothly compressed with a hyperbolic tangent (tanh) into a continuous Gold curve that reveals lead-lag phase rotation.

- Automatic Single-Symbol & Strategy Tester Mode (SELF): Attach it to XAUUSD against EURUSD (default) or XAGUSD, or set InpInvertRef = true for inversely correlated benchmarks like USDCHF, USDJPY, or DXY/USDX. If attached to the same symbol as InpRefSymbol or run in a single-symbol Strategy Tester, it automatically engages a mean-centered causal phase fallback (SELF mode) so signals stay balanced and backtesting never breaks.


How to Trade With This Indicator

- Overbought Reversion Setup (Green Histogram > +2.0): When MediumSeaGreen bars stretch above the +2.0 band, the chart asset is statistically overextended relative to its benchmark; watch for the bars to peak and the Gold Gauge_Loop_Flux line to roll over downward to time mean-reversion shorts.

- Oversold Reversion Setup (Red Histogram < -2.0): When OrangeRed bars plunge below the -2.0 band, the asset is statistically undervalued; watch for the Gold phase curve to curl upward across 0.0 to confirm the bullish snapback.

- Momentum Lead-Lag Confirmation: When the Gold line surges strongly ahead of the histogram crossing 0.0, capital is rotating into the new direction—useful as a macro confluence filter for trend entries.


Technical Specifications & Input Parameters

- Calculation Engine: 100% causal bar-by-bar execution with zero repainting, zero backpainting, and zero external DLL calls.

- InpRefSymbol (Default: "EURUSD"): Reference benchmark symbol (match your broker's exact suffix, e.g., EURUSD.m or XAGUSD; leave blank for SELF phase mode).

- InpInvertRef (Default: false): Inverts reference log-price polarity—set true for inversely correlated benchmarks like USDCHF, USDJPY, or DXY/USDX.

- InpPeriod (Default: 55): Rolling lookback window for OLS dynamic hedging, spread Z-score scaling, and Gauge Loop mean centering.

- InpLoopWindow (Default: 13): Phase holonomy lookback window for lead-lag rotation speed.

- InpBandLevel (Default: 2.0): Symmetric upper and lower Z-score bands flagging statistical reversion extremes.

- Prop-Firm & EA Ready: Exposes StatArb_Pos (Buffer 0), StatArb_Neg (Buffer 1), Gauge_Loop_Flux (Buffer 2), plus a dedicated hidden continuous StatArb_Net line (Buffer 3) so Expert Advisors can read signed spread Z-scores in a single iCustom() call.


####
Timeframe, Pair & Volatility Calibration (Customize to Your Chart)

The default settings (55 / 13 / 2.0 against EURUSD) provide a balanced M15–H1 starting point, and every parameter can be tailored to your exact asset pair and timeframe:

- Cross-Market Pair Ideas: Run on XAUUSD with InpRefSymbol = "XAGUSD" (Gold/Silver arbitrage) or "EURUSD" (Bullion/Dollar), run on US100 against "US500" (Tech vs. Broad Index), or compare correlated FX majors like AUDUSD vs. "EURUSD".

- Faster Intraday Scalping (M5–M15): Reduce InpPeriod to 21–34, shorten InpLoopWindow to 8, and tighten InpBandLevel to 1.75 for quicker spread snapbacks.

- Macro Swing Arbitrage (H1–D1): Expand InpPeriod to 89–144, lengthen InpLoopWindow to 21, and widen InpBandLevel to 2.5 to isolate only high-conviction multi-day dislocations.


-------Also Available for MetaTrader 4 (MT4): Running MT4 instead of MT5? The identically engineered MetaTrader 4 version of Bullion Dollar StatArb Gauge Loop is already published on my MQL5 Seller Profile with the exact same icon, parameters, and mathematical engine. Click my seller name to grab the MT4 edition.

제작자의 제품 더 보기
Overview & Scientific Origin The Fractional Differentiation Stationarity Line is an institutional quantitative indicator engineered from Financial Econometrics and Machine Learning Time-Series Theory . Popularized for institutional hedge funds by quantitative finance researcher Dr. Marcos López de Prado, Fractional Differentiation solves the oldest paradox in algorithmic trading : raw market prices contain valuable long-term trend memory but drift endlessly (making fixed indicator thresholds bre
Overview & Scientific Origin The Fractional Differentiation Stationarity Line is an institutional quantitative indicator engineered from Financial Econometrics and Machine Learning Time-Series Theory . Popularized for institutional hedge funds by quantitative finance researcher Dr. Marcos López de Prado, Fractional Differentiation solves the oldest paradox in algorithmic trading : raw market prices contain valuable long-term trend memory but drift endlessly (making fixed indicator thresholds bre
Overview & Scientific Origin The Navier-Stokes Fluid Reynolds Breakout Meter is an institutional quantitative indicator engineered from Fluid Dynamics and Aerospace Engineering . In physics and mechanical engineering, the Navier-Stokes equations and the dimensionless Reynolds Number are used to predict the exact threshold where a fluid—such as airflow over a supersonic jet wing or crude oil moving through a high-pressure pipeline—transitions from smooth, predictable laminar flow into chaotic, h
Overview & Scientific Origin The Hodgkin-Huxley Neuro-Synaptic Action Spike is an institutional quantitative indicator engineered from Computational Neurobiology and Biophysics . Developed by Nobel Prize-winning biophysicists Alan Hodgkin and Andrew Huxley to model how electrical signals travel through the human brain and nervous system, the Hodgkin-Huxley equations describe how a biological neuron absorbs small, random electrical disturbances until the charge crosses a critical threshold—causin
Overview & Scientific Origin The Seismic Omori Fault Line Aftershock Decay is an institutional quantitative indicator engineered from Geophysics and Earthquake Seismology . In seismology, the Modified Omori-Utsu Law is used to forecast the exact power-law decay rate of aftershocks following a major tectonic earthquake—telling scientists how long a fault line remains unstable before seismic activity returns to normal. This indicator applies seismic hazard decay to financial volatility spikes, sho
Overview & Scientific Origin The Institutional Fair Value Gap Liquidity Net is an institutional quantitative indicator engineered from Market Microstructure and Electronic Order-Book Theory (Smart Money Concepts) . In institutional execution desks and interbank liquidity pools, aggressive high-volume market orders frequently sweep resting limit orders faster than market makers can replenish the book. This displacement leaves behind measurable three-candle price voids—known as Fair Value Gaps (FV
Overview & Scientific Origin The Quantum Feynman Path Integral Oscillator is an institutional quantitative indicator engineered from Quantum Field Theory and Theoretical Physics. Developed by Nobel Prize-winning physicist Richard Feynman, the Path-Integral formulation is used in quantum mechanics and particle physics to evaluate every trajectory a subatomic particle can take between two states—calculating whether waves cancel each other out inside a confining "potential well" or align construct
Overview & Scientific Origin The Hawkes Self Exciting Volatility Cascade is an institutional quantitative indicator engineered from Stochastic Point-Process Theory and High-Frequency Trading (HFT) Microstructure. Originally developed by statistician Alan Hawkes to model self-exciting earthquake chains and viral contagion, Hawkes Processes are widely deployed by institutional market makers and HFT desks to detect real-time order-book clustering—where a single aggressive institutional sweep trigg
Overview & Scientific Origin The Soliton Kdv Rogue Wave Detector is an institutional quantitative indicator engineered from Nonlinear Fluid Physics and Oceanography. Based on the classic Korteweg-de Vries (KdV) partial differential equation, this branch of physics studies solitons (self-reinforcing solitary waves, such as deep-ocean tsunamis or fiber-optic light pulses, that travel long distances without breaking apart or losing energy) and rogue waves (sudden high-amplitude wave surges where n
Overview & Scientific Origin The Thermodynamic Fokker Planck Helmholtz Energy is an institutional quantitative indicator engineered from Statistical Mechanics and Non-Equilibrium Thermodynamics. In physics and physical chemistry, the Fokker-Planck equation measures how a system of particles evolves under directional drift versus random thermal diffusion, while Helmholtz Free Energy (F = U - T · S) calculates how much usable mechanical work a system can perform once heat (T) and random disorder
Overview & Scientific Origin The Bullion Dollar StatArb Gauge Loop is an institutional quantitative indicator engineered from Quantitative Pairs Trading (Statistical Arbitrage) and Lattice Gauge Theory (Theoretical Physics). Institutional prop desks use rolling Ordinary Least Squares (OLS) dynamic hedge ratios to measure when two correlated markets diverge abnormally far from fair value, while physicists use Wilson Gauge Loop Phase Holonomy to measure rotational flux and lead-lag curvature arou
Overview & Scientific Origin The Navier-Stokes Fluid Reynolds Breakout Meter is an institutional quantitative indicator engineered from Fluid Dynamics and Aerospace Engineering . In physics and mechanical engineering, the Navier-Stokes equations and the dimensionless Reynolds Number are used to predict the exact threshold where a fluid—such as airflow over a supersonic jet wing or crude oil moving through a high-pressure pipeline—transitions from smooth, predictable laminar flow into chaotic, hi
Overview & Scientific Origin The Hodgkin-Huxley Neuro-Synaptic Action Spike is an institutional quantitative indicator engineered from Computational Neurobiology and Biophysics . Developed by Nobel Prize-winning biophysicists Alan Hodgkin and Andrew Huxley to model how electrical signals travel through the human brain and nervous system, the Hodgkin-Huxley equations describe how a biological neuron absorbs small, random electrical disturbances until the charge crosses a critical threshold—causi
Overview & Scientific Origin The Seismic Omori Fault Line Aftershock Decay is an institutional quantitative indicator engineered from Geophysics and Earthquake Seismology . In seismology, the Modified Omori-Utsu Law is used to forecast the exact power-law decay rate of aftershocks following a major tectonic earthquake—telling scientists how long a fault line remains unstable before seismic activity returns to normal.This indicator applies seismic hazard decay to financial volatility spikes, show
Overview & Scientific Origin The Institutional Fair Value Gap Liquidity Net is an institutional quantitative indicator engineered from Market Microstructure and Electronic Order-Book Theory (Smart Money Concepts) . In institutional execution desks and interbank liquidity pools, aggressive high-volume market orders frequently sweep resting limit orders faster than market makers can replenish the book. This displacement leaves behind measurable three-candle price voids—known as Fair Value Gaps (FV
Overview & Scientific Origin The Quantum Feynman Path Integral Oscillator is an institutional quantitative indicator engineered from Quantum Field Theory and Theoretical Physics. Developed by Nobel Prize-winning physicist Richard Feynman, the Path-Integral formulation is used in quantum mechanics and particle physics to evaluate every trajectory a subatomic particle can take between two states—calculating whether waves cancel each other out inside a confining "potential well" or align construct
Overview & Scientific Origin The Hawkes Self Exciting Volatility Cascade is an institutional quantitative indicator engineered from Stochastic Point-Process Theory and High-Frequency Trading (HFT) Microstructure. Originally developed by statistician Alan Hawkes to model self-exciting earthquake chains and viral contagion, Hawkes Processes are widely deployed by institutional market makers and HFT desks to detect real-time order-book clustering—where a single aggressive institutional sweep trigg
Overview & Scientific Origin The Soliton Kdv Rogue Wave Detector is an institutional quantitative indicator engineered from Nonlinear Fluid Physics and Oceanography. Based on the classic Korteweg-de Vries (KdV) partial differential equation, this branch of physics studies solitons (self-reinforcing solitary waves, such as deep-ocean tsunamis or fiber-optic light pulses, that travel long distances without breaking apart or losing energy) and rogue waves (sudden high-amplitude wave surges where n
Overview & Scientific Origin The Thermodynamic Fokker Planck Helmholtz Energy is an institutional quantitative indicator engineered from Statistical Mechanics and Non-Equilibrium Thermodynamics. In physics and physical chemistry, the Fokker-Planck equation measures how a system of particles evolves under directional drift versus random thermal diffusion, while Helmholtz Free Energy (F = U - T · S) calculates how much usable mechanical work a system can perform once heat (T) and random disorder
Overview & Scientific Origin The Omni Spectrum Fibonacci Harmonic Ribbon is an institutional main-chart trend-regime indicator engineered from Multi-Scale Spectral Trend Analysis and Golden-Ratio Number Theory. In quantitative signal processing, decomposing price across logarithmically spaced frequency horizons separates short-term market noise from deep macro order flow. By synchronizing six Exponential Moving Averages along the exact Fibonacci sequence (13, 21, 34, 55, 89, 144)—where each lay
필터:
리뷰 없음
리뷰 답변