Blog / Strategy
Strategy

VWAP Pivot Reversion

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?

VWAP Pivot Reversion is a mean-reversion day-trading strategy that combines two of the most widely watched intraday reference frameworks: the Volume Weighted Average Price (VWAP) and classic floor-trader pivot points. VWAP is the session's volume-weighted "fair value" line — the average price at which the market has actually traded so far that day, weighted by volume. Pivot points are objective support and resistance levels calculated from the previous completed day's high, low, and close. The strategy looks for moments when price has stretched far away from fair value and reacted to a structural level, then trades the expected pull-back toward the mean.

The approach is designed for range-bound and rotational intraday conditions rather than strong one-directional trends. Mean-reversion logic assumes that a price extended too far from its session average tends to be pulled back toward it — a tendency that is more reliable when a market is rotating around fair value than when it is trending hard. By requiring a pivot-level rejection in addition to the stretch, the strategy tries to avoid fading a move that simply keeps running.

As a learning tool, VWAP Pivot Reversion is well suited to traders who want to study how confluence between two independent concepts can filter signals. Instead of fading a naked stretch from VWAP (which can keep extending) or a naked pivot touch (which can slice straight through), it waits for both to agree on a freshly closed bar. This makes it a useful case study in objective, rules-based entry design. It is intended for educational analysis and demo experimentation — not as a shortcut to results.

How It Works

The strategy evaluates conditions once per newly closed bar on the selected timeframe, then checks for a confluence setup. Here is the logic in plain English:

VWAP pivot reversion MT5 EA
Illustrative example of the strategy’s entry and exit logic — not real trading results.

Strategy Parameters

Parameter Default Min Max Description
AtrPeriod 14 7 28 Lookback length for the Average True Range, used by both the stretch filter and the protective stop.
AtrStopMult 0.6 0.2 2.0 Stop distance, expressed as a multiple of ATR, placed beyond the pivot that held.
MinStretchAtr 1.0 0.3 3.0 Minimum distance (in ATR multiples) price must be from VWAP to qualify as a genuine over-extension.
MinRewardRisk 0.8 0.3 3.0 Minimum acceptable reward-to-risk ratio; setups whose VWAP target is too close are rejected.
MinSessionBars 8 1 60 Minimum number of bars into the session before VWAP is treated as stable enough to trade.
MaxSpreadPoints 80 5 300 Maximum allowed spread (in points) for a new entry; wider spreads skip the trade.
Lots 0.10 0.01 1.0 Fixed order volume (lot size) for each position.
Magic 5521 0 9,999,999 Unique magic number used to identify and manage this strategy's orders.
VWAP pivot reversion MT5 EA — MQL5 source code

Recommended Chart Settings

VWAP Pivot Reversion is built for the classic home of VWAP-and-pivot day trading: a liquid FX major or a major index such as EURUSD, GBPUSD, or US500 (S&P 500). The natural timeframe range is M5 to M30, where intraday rotation around VWAP is most observable and pivot levels carry meaning. The strategy reads whatever timeframe the chart is set to, so you can backtest across this range to study how signal frequency and behavior change.

Because both VWAP and pivots reset daily, the strategy is inherently an intraday system and does not hold positions overnight. As always, results will vary considerably across different symbols, brokers, and market conditions — what looks balanced on one instrument may behave very differently on another.

How to Install on MetaTrader 5

What to Consider Before Using This EA

Strengths of the approach. The defining feature of VWAP Pivot Reversion is its insistence on confluence. Requiring both an ATR-scaled stretch from VWAP and a pivot-level rejection filters out many of the false signals that a single-concept reversion system would take. The exits are fully objective: a structural ATR-based stop, a real VWAP target, and a hard daily flat. Everything is self-scaling to volatility, which means the same parameters behave consistently as market conditions expand and contract.

Known limitations. Mean-reversion strategies share a characteristic weakness: they tend to underperform in strong trends. When a market breaks out and trends persistently in one direction, an over-extension from VWAP can keep extending, and fading it repeatedly can produce a string of losing trades even with a pivot filter in place. The strategy also depends on tick volume for its VWAP — in forex, tick volume is a proxy for true traded volume, so the VWAP is an approximation rather than an exchange-grade figure. Finally, because it trades only once per magic and flattens daily, signal frequency can be low, which means a meaningful study requires a long sample.

Where it may underperform. Expect challenges during news-driven breakouts, low-liquidity sessions where spreads widen past the MaxSpreadPoints gate, and quiet ranges where ATR compresses and the stretch threshold is rarely met. Treat this EA as a framework for studying confluence-based reversion, not as a finished, market-proof system.

Risk Management Tips

Sound risk management matters far more than any single entry signal. As you study this strategy, keep these general principles in mind:

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