Seismic Omori Fault Line Aftershock Decay MT4
- Göstergeler
-
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 - Sürüm: 1.0
- Etkinleştirmeler: 5
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, showing traders the exact bar when a news shock, CPI whip, or Gold flash-crash has finished decaying so they can re-enter safely . Built with strictly causal, non-repainting logic for Gold (XAUUSD), Silver (XAGUSD), Major Forex pairs, and US Indices .
Mathematical Mechanism & What It Does
Markets behave like geological fault lines: long stretches of quiet pressure buildup abruptly rupture into violent volatility shocks, followed by dangerous secondary whipsaws (aftershocks) that stop out early traders. Instead of guessing when the dust has settled, this algorithm models post-shock volatility clustering mathematically:
-
Mainshock Detection: Across a 55-bar rolling baseline, the indicator calculates True Range and computes a live volatility Z-score. Whenever price volatility exceeds the critical rupture threshold ( 2.5 standard deviations by default), it registers a financial Mainshock and fires an OrangeRed vertical spike.
-
Modified Omori-Utsu Superposition Kernel: Every detected mainshock feeds into a strictly causal 55-bar convolution window governed by the Modified Omori-Utsu power-law equation ($n(t) = K / (c + t)^p$). If multiple shocks hit back-to-back, their residual aftershock energies stack together automatically.
-
Live Aftershock Decay Curve: The summed hazard energy plots as a continuous Gold curve ( Omori_Decay_Hazard ), smoothly decaying bar-by-bar until volatility stabilizes back below the safe-entry floor ( 0.5 ).
-
How to Trade With This Indicator
-
Mainshock Warning (Stand Aside): When an OrangeRed Mainshock_Spike histogram bar fires and the Gold Omori_Decay_Hazard curve jumps sharply above the 0.5 safe threshold, the market is inside an active aftershock zone—avoid tight-stop entries and pause mean-reversion bots.
-
Safe Re-Entry Signal (Decay Complete): Wait for the Gold decay curve to slope steadily downward and cross back below the 0.5 ( InpSafeLevel ) floor. This confirms post-news turbulence has dissipated and normal structure has returned .
-
Clustered Rupture Alert: If a second OrangeRed spike fires before the Gold curve finishes decaying, the stacked hazard curve warns of an extended high-volatility regime where wider stops or breakout strategies are required.
-
Technical Specifications & Input Parameters
-
Calculation Engine: 100% causal bar-by-bar indexing with zero repainting, zero backpainting, and zero external DLL calls .
-
InpPeriod (Default: 55): Rolling lookback window for baseline True Range volatility scaling .
-
InpDecayWindow (Default: 55): Causal convolution window over which prior mainshocks contribute aftershock energy.
-
InpShockThresh (Default: 2.5): Volatility Z-score threshold required to trigger a Mainshock spike.
-
InpOmoriC (Default: 1.0) & InpOmoriP (Default: 1.15): Modified Omori-Utsu time-offset ( c ) and power-law decay exponent ( p ) constants controlling how quickly aftershock risk dissipates.
-
InpSafeLevel (Default: 0.5): Hazard floor signaling when post-shock turbulence has cooled to safe trading levels.
-
Prop-Firm & EA Ready: Clean 4-buffer architecture ( ExtMainshockBuffer , ExtOmoriBuffer , ExtShockZBuffer , ExtTRBuffer ) designed for direct iCustom integration as a news-aftershock trade blocker .
-----Also Available for MetaTrader 5 (MT5): Running MT5 instead of MT4? The identically engineered MetaTrader 5 version of Seismic Omori Fault Line Aftershock Decay is already published on my MQL5 Seller Profile with the exact same icon, parameters, and mathematical engine. Click my seller name to grab the MT5 edition.
