Multi Physics Veto Matrix MT4
- 지표
-
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 AND SCIENTIFIC ORIGIN
The Multi Physics Veto Matrix is an institutional quantitative consensus and trade-filtering indicator engineered from five branches of applied physics and econometrics: Fractional Calculus, Fluid Dynamics, Computational Neurobiology, Statistical Mechanics, and Stochastic Mean-Reversion Theory. Powered by the internal ME.v2 multi-physics consensus engine, which is displayed on the live subwindow telemetry readout.
Designed as a complementary flagship module on the same institutional telemetry framework as Variational Mode Lorenz Chaotic Attractor, this indicator serves a distinct analytical role. Whereas Variational Mode Lorenz focuses on decomposing a single price series into three spectral modes and tracking chaotic attractor wing shifts, Multi Physics Veto Matrix fuses five independent quantitative physics pillars into one unified directional consensus score and shields that score behind an active multi-gate hard veto system. Built with strictly causal, bar-by-bar non-repainting logic, it helps traders and automated systems isolate organized directional flow while physically blocking entries during volatility aftershocks, thermal market chop, and broker spread spikes across Gold (XAUUSD), Silver (XAGUSD), Major Forex pairs, and US Indices.
HOW THE FIVE PHYSICS PILLARS CALCULATE CONSENSUS
Single-formula indicators break down when market regimes change because trend, momentum, and volatility rarely behave identically across sessions. On every bar across your master lookback window (InpPeriod = 55), this engine evaluates five distinct physical models simultaneously:
Pillar 1 - Fractional Differentiation (FD, Weight 30%):
Originates from financial econometrics. Applies a fixed-width binomial kernel (InpFracDiffOrder = 0.45) to log-prices to produce a stationary momentum series that removes raw trend drift while preserving long-term price memory.
Pillar 2 - Navier-Stokes Reynolds Flow (NS, Weight 20%):
Originates from fluid dynamics. Compares 3-bar kinetic price velocity scaled by Average True Range against microstructural viscosity to detect when smooth laminar consolidation transitions into directed turbulent flow.
Pillar 3 - Hodgkin-Huxley Membrane Potential (HH, Weight 25%):
Originates from computational neurobiology. Passes closing price deviation through a nonlinear biological sigmoid ion-channel gate so minor background ticks are dampened while genuine structural displacement builds clear voltage.
Pillar 4 - Fokker-Planck Drift-Diffusion Current (FP, Weight 25%):
Originates from statistical mechanics. Measures the dimensionless Peclet ratio of directional log-return drift divided by random Brownian diffusion to determine whether trend force exceeds random noise.
Pillar 5 - Ornstein-Uhlenbeck Elasticity Damping (OU):
Originates from stochastic mean-reversion physics. Measures how many ATR units price has stretched from its rolling mean. Once stretch exceeds 2.5 ATR, OU elasticity automatically dampens the combined consensus score so traders are not signaled into late parabolic exhaustion.
The weighted, OU-damped composite is smoothed via a responsive 2-bar EMA and compressed smoothly using a hyperbolic tangent function into the subwindow histogram (-4.5 to +4.5), while a slower 5-bar EMA plots the structural consensus curve directly over it.
THE THREE HARD VETO GATES (PLUS OPTIONAL SESSION GATE)
Strong directional readings often fail when market structure is damaged by news whipsaws or illiquid spread widening. Before any bar is approved, the matrix tests three hard protective gates (and one optional session gate):
Gate 1 - Seismic and Hawkes Shock Filter (SHK):
Monitors True Range volatility Z-scores across a 5-bar exponentially decaying aftershock window. If recent shock energy equals or exceeds InpShockVeto (2.80), the matrix locks out signals until post-news turbulence decays.
Gate 2 - Shannon Return Entropy Chop Filter (ENT):
Sorts rolling log-returns into an 8-bin empirical probability distribution to compute normalized Shannon Entropy between 0.00 (ordered trend) and 1.00 (random disorder). If entropy reaches or exceeds InpEntropyVeto (0.92) while Fokker-Planck directional drift is weak (below 0.75), thermal chop is flagged and signals are vetoed.
Gate 3 - Live Spread Viscosity Filter (SPREAD):
When InpUseSpreadVeto is enabled (true by default), the live bar compares the broker bid-ask spread directly against rolling ATR. If live spread exceeds InpMaxSpreadATR (0.25 ATR), the bar is blocked to avoid rollover traps and illiquid widening.
Optional Gate 4 - Active Session Window (SESSION):
Disabled by default (InpUseSessionFilter = false). When enabled, restricts approved signals strictly to your chosen broker-time trading window (InpSessionStartHour to InpSessionEndHour).
VISUAL GUIDE AND LIVE TELEMETRY HUD
Subwindow Scale (-4.5 to +4.5, dashed reference levels at +1.5, 0.0, and -1.5):
- DodgerBlue Histogram (Bull_Alpha_Go): Unvetoed, approved bullish multi-physics conviction.
- Crimson Histogram (Bear_Alpha_Go): Unvetoed, approved bearish multi-physics conviction.
- DimGray Histogram (Veto_Blocked): Bars physically grayed out and blocked by an active Shock, Entropy Chop, Spread, or Session veto gate.
- WhiteSmoke Line (Alpha_Consensus): 5-bar EMA structural consensus curve separating sustained macro direction from short-term bar swings.
- Cyan Dot (Bull_Matrix_Lock) and HotPink Dot (Bear_Matrix_Lock): Reversal-locked confirmation dots plotted directly on the WhiteSmoke curve strictly on unvetoed regime flips beyond +1.5 or -1.5.
Upper-Right Live Telemetry HUD (InpShowHUD = true):
- Line 1 (ME.v2 MATRIX): Displays the live state (BULL ALPHA GO, BEAR ALPHA GO, VETO LOCK with exact gate reason, BULL FORMING, BEAR FORMING, or NEUTRAL DRIFT) and signed consensus score.
- Line 2 (PILLARS): Displays real-time polarity (+ or -) for FD, NS, HH, and FP along with the live alignment ratio (such as 4/4 ALIGN).
- Line 3 (GATES): Displays live numerical telemetry for Shock (SHK), Shannon Entropy (ENT), and Ornstein-Uhlenbeck stretch (OU).
- Line 4 (DIRECTIVE): Translates matrix state into a clear operational readout: LONG BIAS APPROVED, SHORT BIAS APPROVED, BLOCKED BY MATRIX, or STAND ASIDE.
HOW TO TRADE WITH THIS INDICATOR
Bullish Regime Confirmation:
Look for DodgerBlue histogram expansion above +1.5 paired with a Cyan Bull_Matrix_Lock dot on the WhiteSmoke consensus curve, 3/4 or 4/4 pillar alignment, and a LONG BIAS APPROVED directive on the HUD.
Bearish Regime Confirmation:
Look for Crimson histogram expansion below -1.5 paired with a HotPink Bear_Matrix_Lock dot on the WhiteSmoke curve, strong downward pillar alignment, and a SHORT BIAS APPROVED directive.
Active Loss Blocking and Stand-Aside Filter:
Whenever histogram bars turn DimGray and the HUD displays VETO LOCK and BLOCKED BY MATRIX, stand aside and avoid opening new trend or breakout trades. Readings drifting between -1.5 and +1.5 indicate low-conviction equilibrium where patience is favored.
TECHNICAL SPECIFICATIONS AND EA BUFFER MAP
Calculation Engine:
100% causal bar-by-bar execution with zero repainting, zero backpainting, and zero external DLL calls. Short name displayed in the subwindow: MEv2_Veto(55).
Core Input Parameters:
- InpPeriod (Default: 55): Master rolling lookback window across all five physics pillars and entropy bins.
- InpFracDiffOrder (Default: 0.45): Fractional differentiation order (d) balancing stationarity and price memory.
- InpGoThreshold (Default: 1.50): Consensus score gate required for Alpha Go status and reversal-locked matrix dots.
- InpShockVeto (Default: 2.80): Decaying ATR Z-score threshold for the Seismic/Hawkes shock veto gate.
- InpEntropyVeto (Default: 0.92): Normalized Shannon Entropy threshold (0.0 to 1.0) for the thermal chop veto gate.
- InpUseSpreadVeto (Default: true) and InpMaxSpreadATR (Default: 0.25): Live spread viscosity protection limit relative to ATR.
- InpUseSessionFilter (Default: false), InpSessionStartHour (8), and InpSessionEndHour (20): Optional broker-hour trading window filter.
- InpShowHUD (Default: true): Toggles the 4-line upper-right telemetry HUD (automatically bypassed during Strategy Tester optimization).
Expert Advisor Integration (iCustom Buffer Map):
- Buffer 0: Bull_Alpha_Go (DodgerBlue approved positive bars)
- Buffer 1: Bear_Alpha_Go (Crimson approved negative bars)
- Buffer 2: Veto_Blocked (DimGray blocked bars)
- Buffer 3: Alpha_Consensus (WhiteSmoke continuous structural curve)
- Buffer 4: Bull_Matrix_Lock (Cyan bullish flip dot)
- Buffer 5: Bear_Matrix_Lock (HotPink bearish flip dot)
- Buffer 6: Veto_State_Flag (Hidden continuous EA flag: 0.0 = Approved, 1.0 = Vetoed)
TIMEFRAME AND VOLATILITY CALIBRATION (CUSTOMIZE TO YOUR CHART)
The default settings (55 period, 0.45 FracDiff order, 1.50 lock gate, 2.80 shock veto, 0.92 entropy veto, 0.25 spread ATR) are calibrated as a balanced M15 to H1 baseline for Gold (XAUUSD), Major Forex pairs, and US Indices. Every threshold can be adjusted to fit your symbol and trading horizon:
- Faster Intraday and Scalping (M5 to M15): Lower InpPeriod to 34 and tighten InpGoThreshold to 1.20 to 1.35 for earlier regime flips. If your broker has slightly wider M5 spreads on Gold, raise InpMaxSpreadATR to 0.30 or 0.35 so normal ticks are not vetoed.
- Stricter Institutional Swing Filtering (H1 to H4): Raise InpPeriod to 89 and increase InpGoThreshold to 1.80 to 2.10 to isolate only high-alignment multi-pillar trends.
- Tightening or Relaxing the Veto Shield: Lower InpShockVeto to 2.20 to 2.50 or InpEntropyVeto to 0.88 for a stricter loss-blocking filter during erratic sessions. Raise InpShockVeto to 3.20 to 3.50 on high-beta instruments (such as NAS100 or Gold during active New York sessions) if you want breakout volatility spikes to pass through.
- Session Discipline: Enable InpUseSessionFilter = true and set InpSessionStartHour and InpSessionEndHour to match your broker server clock for London and New York liquidity hours while automatically graying out Asian rollover chop.
----Trading on MetaTrader 5 instead of MetaTrader 4? The identically engineered MetaTrader 5 edition of Multi Physics Veto Matrix is published on my MQL5 Seller Profile with the exact same thumbnail, 5-pillar consensus engine, 3-gate veto shield, live telemetry HUD, and parameter set. Visit my seller profile to access the MT5 version.
