Blog / Strategy
Strategy

Fractional Differential Momentum

Disclaimer: This article is for educational and informational purposes only. It does not constitute financial or investment advice. Trading forex and CFDs carries significant risk of loss. Past performance of any strategy — including backtests — does not guarantee future results. Never trade with money you cannot afford to lose.

What Is This Strategy?

Fractional Differential Momentum is a regime-following trading strategy built around fractional differencing, a signal-processing transform borrowed from long-memory time-series analysis (popularised by Marcos López de Prado). Despite the word "fractional," it has nothing to do with fractals or FRAMA-style indicators. Instead, it addresses a subtle but well-known problem in quantitative finance: a raw price series is non-stationary (it trends and wanders, so its statistical properties drift over time), while the usual fix — taking a first difference to get returns — produces a stationary but memoryless series that discards the very trend information a momentum trader wants to keep.

Fractional differencing sits between those two extremes. By differencing the close series to a real-valued order d somewhere between 0 and 1, the strategy produces a series that is stationary enough to compare across time, yet still retains long memory of the underlying trend. The resulting value, which we'll call the FD reading, behaves like a memory-weighted displacement of price from its own recent past: a positive FD reflects accumulated upward pressure, and a negative FD reflects accumulated downward pressure. The reading is then normalised by the Average True Range (ATR — a standard measure of recent volatility) so that thresholds mean the same thing whether the market is calm or fast.

This is a trend/regime-following approach designed for markets that develop and sustain directional moves rather than chop sideways. As a learning tool, it is well suited to intermediate traders who already understand momentum, volatility normalisation, and stop/target mechanics, and who want to explore a more advanced, research-grade way of measuring trend persistence. It is best studied as a case study in indicator design — not as a shortcut to returns.

How It Works

The strategy evaluates its logic once per closed bar, using the fractional-difference weights that are precomputed a single time from the order d and the Window length. Each condition is described in plain English below.

In short, the strategy waits for the fractional-difference reading to break decisively out of its dead-band in the same direction it has already been building, then rides that regime with an ATR-based stop and target until the opposite signal flips it.

fractional differencing momentum MT5 EA
Illustrative example of the strategy’s entry and exit logic — not real trading results.

Strategy Parameters

Parameter Default Min Max Description
FracOrder 0.45 0.10 0.90 The fractional differencing order d. Lower values keep more long memory (closer to raw price); higher values behave more like ordinary returns.
Window 40 15 120 Number of past closes used to compute each fractional-difference reading (the weight window length).
SignalPeriod 8 2 30 Lookback for the memory-buildup / slope filter; how many bars the FD series must have been trending in the signal direction.
BandMult 0.15 0.00 1.50 Width of the ATR-scaled dead-band around zero. Larger values demand a bigger displacement before a crossing counts.
AtrPeriod 14 5 50 Period of the ATR used for normalisation and for sizing stops and targets.
StopMult 2.0 0.5 5.0 Stop-loss distance as a multiple of ATR.
RewardRatio 2.0 0.5 5.0 Take-profit distance as a multiple of the stop distance (reward-to-risk ratio).
Lots 0.10 0.01 1.0 Fixed trade size in lots.
fractional differencing momentum MT5 EA — MQL5 source code

Recommended Chart Settings

Fractional Differential Momentum was designed and tuned around a liquid major forex pair on an intraday-to-swing timeframe, such as H1 (1-hour) charts, where directional regimes are common enough to give the transform something to track while avoiding the extreme noise of very small timeframes. Because ATR normalisation is built in, the strategy adapts to different volatility levels without manual retuning of thresholds.

That said, no single symbol or timeframe is universally optimal. The default parameters are a starting point for study, not a finished configuration. Different instruments, sessions, and market conditions will produce very different behaviour, so always test on the specific symbol and timeframe you intend to analyse.

How to Install on MetaTrader 5

What to Consider Before Using This EA

The main strength of this approach is conceptual: fractional differencing is a principled attempt to keep a trend signal stationary and comparable over time while preserving long memory — something a plain moving average or raw returns series cannot do as cleanly. Pairing that reading with ATR normalisation, a dead-band, and a same-direction buildup filter is a thoughtful way to reduce false regime flips. For a student of quantitative methods, the code is a compact, readable example of how a research idea translates into an executable rule set.

The limitations are equally important to understand. Like all trend- and regime-following systems, it is prone to whipsaws in ranging or choppy markets, where FD may repeatedly cross the dead-band without a lasting move, generating losing reversals. The reading is sensitive to the choice of FracOrder and Window: too much memory can make it lag, too little can make it noisy, and aggressive optimisation risks curve-fitting to past data that may not repeat. The always-in-the-market reverse-on-signal logic means there is no flat "wait and see" state — it holds a position in whichever regime last triggered. Finally, real-world factors such as spread, slippage, and swap can meaningfully affect results, especially on shorter timeframes. Treat this EA as a framework for learning about long-memory indicators, and validate every assumption yourself.

Risk Management Tips

Risk Warning

Trading foreign exchange, CFDs, and other leveraged financial instruments involves substantial risk of loss and is not suitable for all investors. The strategies and tools discussed on this page are provided for educational purposes only and do not constitute financial advice, investment recommendations, or solicitation to trade. Always consult a qualified financial adviser before making trading decisions. Past backtest performance is not indicative of future results.

Downloads

← Back to Blog