Blog / Strategy
Strategy

Volume Contraction Pullback Trend

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 Volume Contraction Pullback Trend strategy is a trend-continuation system built around Volume Spread Analysis (VSA) — the "No Supply / No Demand" test-bar concept popularised by Tom Williams and rooted in the earlier work of Richard Wyckoff. Instead of hunting for a volume surge, it does the opposite: it looks for the absence of opposing volume during a pullback, then waits for the trend to resume. It combines a sloped Exponential Moving Average (EMA) trend filter — a moving average that weights recent prices more heavily — with a narrow-spread, low-volume candle test and an Average True Range (ATR) volatility bracket for risk.

The core idea is simple to state. During a healthy trend, a genuine counter-trend pullback that the crowd is unwilling to press should arrive quietly: on a narrow spread (a small high-to-low range relative to recent volatility) and on shrinking tick volume. In an uptrend, a small down bar on falling volume suggests sellers are absent — a classic "No Supply" test. In a downtrend, a small up bar on falling volume suggests buyers are absent — a "No Demand" test. The strategy treats this quiet counter-move as a warning, not a signal, and only acts when the next bar confirms the trend by closing back through the test bar.

As a learning tool, this strategy is well suited to traders who want to study how volume and spread interact with price structure, rather than relying on price alone. It is designed for trending markets on liquid instruments and is best treated as an educational example of how VSA logic can be encoded into a rules-based Expert Advisor (EA). It is not a shortcut, and it will sit on its hands during choppy, directionless conditions — which is by design.

How It Works

The strategy evaluates one newly closed bar at a time. It labels the just-closed bar the confirm bar (c) and the bar immediately before it the test bar (p). Every condition below must line up before a trade is signalled.

Trend filter (regime):

Test-bar qualification (the VSA footprint):

Long entry — "No Supply" (the strategy signals a buy when):

Short entry — "No Demand" (the strategy signals a sell when):

Trade filters:

Stop-loss and take-profit logic (fully volatility-scaled):

volume contraction pullback trend EA
Illustrative example of the strategy’s entry and exit logic — not real trading results.

Strategy Parameters

Parameter Default Min Max Description
EmaPeriod 34 10 120 Length of the EMA trend baseline. Longer values track the broader trend; shorter values react faster.
TrendSlopeBars 3 1 10 How many bars back the EMA is compared to when confirming slope direction.
NarrowSpreadFactor 0.7 0.2 1.5 The narrow-spread gate: the test bar's high-low range must be below this multiple of ATR.
VolBarsBack 2 1 6 The test bar's tick volume must undercut the minimum volume of this many preceding bars.
AtrPeriod 14 5 30 ATR lookback used for both the spread gate and the risk bracket.
AtrStopMult 1.5 0.5 4.0 Stop-loss distance from entry, expressed in ATRs.
RewardRiskRatio 1.8 1.0 5.0 Take-profit distance as a reward-to-risk multiple of the stop.
MaxSpreadPoints 60 5 300 Skip new entries when the broker spread (in points) is wider than this.
Lots 0.10 0.01 1.0 Trade volume in lots.
Magic 7731 0 9,999,999 Unique identifier so the EA manages only its own positions.
volume contraction pullback trend EA — MQL5 source code

Recommended Chart Settings

The Volume Contraction Pullback Trend strategy was designed with liquid FX majors, metals (such as gold), and major indices in mind, on timeframes from M5 to H1. These instruments tend to produce cleaner tick-volume readings and trends of usable length, which suits the VSA logic. That said, the EA is not locked to a single timeframe — it reads bars from whatever timeframe the chart is set to, so you can test it across several.

Because tick volume is a broker-side proxy rather than true exchange volume, results can vary between brokers and across different market conditions. Treat the defaults as a reasonable starting point for study, not a fixed prescription, and re-evaluate the parameters whenever you change symbol or timeframe.

How to Install on MetaTrader 5

What to Consider Before Using This EA

Every approach has trade-offs, and understanding them is part of learning to use any tool responsibly.

Strengths of this approach:

Known limitations:

This strategy may underperform during low-volatility consolidations, news-driven spikes, and sideways regimes. It is best understood as an educational study of VSA continuation logic — not a set-and-forget solution.

Risk Management Tips

Sound risk management matters far more than any single entry rule. Consider these general principles as you study the strategy:

Used thoughtfully, the Volume Contraction Pullback Trend EA can help you learn how volume, spread, and trend structure combine into a disciplined, rules-based framework — which is the real value of studying it.

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