Fractional Differentiation Stationarity Line 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.0
- 활성화: 5
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 break), whereas taking standard 1st-order returns ( d = 1.0 ) makes the data stationary at the cost of erasing almost all trend memory . This indicator applies a 0.45 fractional differentiation order to log-prices—delivering a stationary, non-repainting momentum series that retains over 90% of historical price memory for Gold (XAUUSD), Silver (XAGUSD), Major Forex pairs, and US Indices .
Mathematical Mechanism & What It Does
Instead of choosing between lagging price averages or noisy bar-to-bar percentage changes, this algorithm computes a mathematically optimal middle ground in real time:
-
Fixed-Width Window Fractional Differentiation (FFD): At initialization, the indicator precomputes exact recursive binomial memory weights using differentiation order d = 0.45 ( InpOrderD = 0.45 ) across up to 89 bars ( InpMaxWindow = 89 ), automatically truncating negligible tail weights below 0.0001 ( InpWeightThresh ).
-
Log-Price Memory Preservation: Applying this fixed-width binomial kernel to log-prices strips out unstable trend drift while keeping long-horizon structural pressure intact .
-
Stationary Z-Score & Signal Overlay: The raw FracDiff series is normalized across a 55-bar rolling window ( InpZPeriod = 55 ) into a MediumSlateBlue histogram ( FracDiff_ZScore ) framed by symmetric regime bands ( +2.0 / -2.0 ), overlaid with a smooth Aqua 9-period EMA signal line ( FracDiff_Signal ) for clean directional timing.
-
How to Trade With This Indicator
-
Bullish Institutional Momentum (+2.0 Expansion / Signal Cross): When the MediumSlateBlue FracDiff_ZScore histogram pushes cleanly above the 0.0 equilibrium axis and crosses above the Aqua FracDiff_Signal line—especially surging past the +2.0 band—long-memory upward drift is confirmed without artificial trend lag .
-
Bearish Institutional Momentum (-2.0 Expansion / Signal Cross): When the histogram drops below 0.0 and beneath the Aqua signal line toward or below -2.0 , sustained bearish structural momentum is active .
-
Statistical Exhaustion & Equilibrium Filter: When extreme readings beyond +2.0 or -2.0 snap back across the Aqua signal line, it warns of momentum exhaustion and impending mean reversion. Choppy oscillations tightly hugging 0.0 signal low-conviction equilibrium where breakout entries should be skipped .
-
Technical Specifications & Input Parameters
-
Calculation Engine: 100% causal bar-by-bar execution with precomputed binomial weights, zero repainting, zero backpainting, and zero external DLL calls .
-
InpOrderD (Default: 0.45): Fractional differentiation order ( 0.0 = raw price, 1.0 = standard returns; 0.45 balances stationarity with long-term memory retention) .
-
InpMaxWindow (Default: 89) & InpWeightThresh (Default: 0.0001): Maximum kernel window length and weight cutoff threshold for the Fixed-Width Window (FFD) engine.
-
InpZPeriod (Default: 55): Rolling normalization lookback window for Z-score scaling .
-
InpSignalPeriod (Default: 9) & InpBandLevel (Default: 2.0): EMA smoothing period for the Aqua signal overlay and critical regime band level.
-
Prop-Firm & EA Ready: Lightweight 3-buffer architecture ( FracDiff_ZScore , FracDiff_Signal , and raw fractional differentiation buffer) with full MT4/MT5 parity for direct Expert Advisor integration .
----Also Available for MetaTrader 5 (MT5): Running MT5 instead of MT4? The identically engineered MetaTrader 5 version of Fractional Differentiation Stationarity Line 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.
