Blog / Strategy
Strategy

Cumulative Delta Reversal

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?

The Cumulative Delta Reversal strategy is an order-flow, mean-reversion system for MetaTrader 5 built around Cumulative Volume Delta (CVD) — a running tally of net buying versus net selling pressure. Ordinary price charts only tell you where the market went; CVD attempts to describe the force behind each move. This expert advisor (EA) uses that idea to look for price/CVD divergences, a classic exhaustion pattern where price grinds to a fresh extreme but the order flow driving it has quietly dried up.

Because most retail feeds do not include a true bid/ask tape, the strategy estimates signed volume from a single OHLCV (Open, High, Low, Close, Volume) series using the Close-Location Value (CLV) split. For each closed bar it calculates where the close landed inside the bar's range, multiplies that by the bar's tick volume, and adds the result to a running total. When price posts a new high but the CVD peak happened several bars earlier and has since rolled over, the EA reads that as buyers running out of conviction and signals a fade (short). The mirror-image logic applies at fresh lows for longs.

As a learning tool, this strategy suits traders who want to study order-flow concepts, divergence detection, and volatility-scaled risk without needing a specialized data feed. It is designed for counter-trend, reversal conditions rather than strong trending markets, and it is best explored on a demo account by anyone curious about how volume delta and price action can be combined into a rules-based system.

How It Works

The EA processes one signal per newly closed bar on the chart's current timeframe. On each closed bar it updates its running CVD, then scans a rolling window for divergences.

Building the order-flow tally:

The short (bearish divergence) signal — fading a top:

The long (bullish divergence) signal — fading a bottom:

Exit, stop-loss, and take-profit logic:

Because it waits for a fresh extreme, a genuine flow divergence, and a confirming close, the strategy is intentionally selective — it may indicate relatively few setups rather than trading constantly.

cumulative delta reversal MT5 EA
Illustrative example of the strategy’s entry and exit logic — not real trading results.

Strategy Parameters

Parameter Default Min Max Description
DivLookback 24 8 80 Rolling window (in bars) over which price and CVD extremes are compared.
MinSeparation 3 1 20 The CVD peak/trough must occur at least this many bars before the price extreme to count as a divergence.
DivRatio 0.30 0.05 0.90 Minimum CVD pullback (from peak) or recovery (from trough), as a fraction of the window's CVD range.
AtrPeriod 14 5 40 Lookback period for the ATR volatility measure.
AtrStopMult 1.5 0.5 4.0 Stop-loss distance as a multiple of ATR beyond the entry.
RewardRisk 1.8 0.5 5.0 Take-profit distance as a reward-to-risk multiple of the stop distance.
MaxSpreadPoints 80 5 300 Skips new entries when the current spread (in points) is wider than this.
Lots 0.10 0.01 1.0 Fixed lot size per trade.
Magic 8842 0 9,999,999 Unique identifier so the EA only manages its own positions.
cumulative delta reversal MT5 EA — MQL5 source code

Recommended Chart Settings

The Cumulative Delta Reversal strategy is designed for a liquid FX major or an index where tick volume is a reasonable proxy for real order flow. Its natural home is the M5 to M30 timeframes, which balance enough bars to build a meaningful CVD history against the noise of very short intervals. The EA reads whatever symbol and timeframe the chart is set to, so simply attach it to a chart matching those conditions.

Keep in mind that tick volume is only an approximation of true traded volume, and its reliability varies by broker and instrument. Results will vary across different market conditions, symbols, and sessions, so treat these settings as a starting point for your own study rather than a fixed recommendation.

How to Install on MetaTrader 5

What to Consider Before Using This EA

Strengths of the approach. Divergence-based reversal systems can offer favorable reward-to-risk geometry because they aim to enter near an exhaustion point, close to a logical stop. Estimating flow from CLV means the strategy works on any standard OHLCV series without a specialized order-flow feed, which makes it a practical way to study volume-delta concepts. The multi-condition filter (fresh extreme + separated CVD divergence + confirming close) is deliberately conservative, which historically helps avoid many low-quality signals.

Known limitations. The biggest caveat is that tick volume is not real traded volume — it counts price updates, not contracts or lots. On thin instruments or during off-peak sessions, the CLV-based delta can be noisy and the divergence read less meaningful. Like all counter-trend methods, this strategy can underperform in strong, persistent trends, where price keeps making new extremes and "fading the high" repeatedly runs into the stop-loss. Divergence is also inherently a lagging pattern: it only becomes visible after the CVD peak has already formed and rolled back.

Market conditions to watch. Range-bound, choppy, or exhaustion phases tend to suit the logic better than breakout or momentum regimes. Sharp news spikes can widen spreads (partly mitigated by the MaxSpreadPoints filter) and trigger extremes that are not true reversals. Because only one position is open at a time with a fixed lot size, the strategy does not scale into positions or adapt size to account equity — something to consider in your own risk framework.

Risk Management Tips

Sound risk management matters more than any single entry rule. As you study this EA, consider these general principles:

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