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 Index Conviction Trend strategy is a trend-following Expert Advisor (EA) built around the Positive Volume Index (PVI) and Negative Volume Index (NVI) — a classic pair of cumulative volume indicators first popularized by Paul Dysart and later refined by Norman Fosback. Instead of measuring price alone, these indicators split every bar into two groups of participants based on how activity changes from one bar to the next, then track each group's footprint separately.
The core idea is simple to state and surprisingly nuanced in practice. On busy bars — where tick volume rises versus the previous bar — the crowd is assumed to be active, so the price change is added to the PVI. On quiet bars — where tick volume falls — the assumption is that informed "smart money" is trading with less noise to hide behind, so the price change is added to the NVI. Fosback's observation was that the NVI, when it trades above its own long-term moving average, historically coincided with periods where quieter, more informed accumulation was underway. This strategy treats the NVI as the higher-conviction signal and uses the PVI only as a confirmation filter.
This EA is best viewed as a learning tool for traders who want to understand how volume-derived indicators can be combined into a single directional decision. It suits students of technical analysis who already grasp moving averages and want to explore a less common indicator family. It is designed for trending conditions on liquid instruments, and — like every strategy — it will behave differently across changing market environments. Approach it as a study in indicator construction, not as a shortcut.
How It Works
The strategy processes only fully closed bars (it reads the bar at shift 1, the one that just completed) to avoid acting on a still-forming candle that could repaint. On each new bar it updates both volume indices, advances their EMAs (Exponential Moving Averages — a weighted average that reacts faster to recent data), and then checks its rules.
Index calculation on every closed bar:
- Compute the percentage price change:
pct = (Close − PrevClose) / PrevClose. - If this bar's tick volume is lower than the previous bar's, multiply the NVI by
(1 + pct)— the "smart money" branch. - If this bar's tick volume is higher, multiply the PVI by
(1 + pct)— the "crowd" branch. - Both indices are seeded at 1000 (Fosback's traditional base value) and their signal EMAs are updated using the
SignalPeriodsetting.
The strategy signals a long entry when all of the following align:
- The NVI crosses above its own EMA (a bullish regime turn in the informed-money index).
- The NVI is rising on the current bar (confirming momentum in the direction of the cross).
- The PVI is at or above its own EMA (the crowd is not stampeding the other way).
The strategy signals a short entry when the mirror image is true:
- The NVI crosses below its EMA.
- The NVI is falling on the current bar.
- The PVI is at or below its own EMA.
Exit and position management logic:
- The EA holds one position at a time. If an opposite signal appears while a trade is open, it flips — closing the current position and opening the new one.
- If the NVI simply crosses back against an open trade (a "regime lost" cross) without a full opposite setup, the position is closed flat and the EA stands aside.
- A hard backstop is always in place: each trade carries an ATR-based stop-loss and take-profit (ATR is the Average True Range, a measure of recent volatility). The stop distance is
SlMult × ATRand the target isTpMult × ATR, so both adapt automatically to how volatile the market currently is.
Because the stop and target scale with ATR, the risk-per-trade in price terms widens in fast markets and tightens in calm ones, rather than being fixed to a static pip value.

Strategy Parameters
| Parameter | Default | Min | Max | Description |
|---|---|---|---|---|
| SignalPeriod | 40 | 10 | 150 | Period of the EMA applied to the NVI and PVI. Longer values smooth the indices and produce fewer, slower signals; shorter values react faster but generate more crossovers. |
| AtrPeriod | 14 | 5 | 40 | Number of bars used to calculate the ATR that sizes the stop-loss and take-profit. Larger values give a steadier volatility estimate. |
| SlMult | 2.00 | 0.50 | 5.00 | Stop-loss distance as a multiple of ATR. Higher multiples place a wider stop that is less easily hit by noise but risks more per trade. |
| TpMult | 3.00 | 0.50 | 8.00 | Take-profit distance as a multiple of ATR. This default pairs a 3× target with a 2× stop for a roughly 1.5:1 reward-to-risk shape. |
| Lots | 0.10 | 0.01 | 1.00 | Fixed trade size in lots. This is a static volume and does not scale with account equity. |

Recommended Chart Settings
The Volume Index Conviction Trend strategy was designed with a liquid FX major such as EUR/USD in mind, on an intraday timeframe like M15 or M30. Liquid majors tend to produce cleaner tick-volume readings, which matters because the entire PVI/NVI split depends on comparing tick volume from bar to bar. The symbol and timeframe are read from the chart at run time and are never hard-coded, so you are free to test other markets and periods.
Keep in mind that tick volume is a proxy for real traded volume in the decentralized forex market, and it can differ between brokers. Results will vary across different instruments, timeframes, and market conditions, so treat any single configuration as a starting point for study rather than a finished setting.
How to Install on MetaTrader 5
- Download the .ex5 file from the link below.
- Copy it to your MT5
MQL5\Expertsfolder. - Restart MetaTrader 5 or refresh the Navigator panel.
- Drag the EA onto a chart matching the recommended symbol and timeframe.
- Configure the input parameters and enable Algo Trading.
What to Consider Before Using This EA
Strengths of the approach. The PVI/NVI framework is a genuinely different lens on the market — it draws on the relationship between volume and price rather than price alone, and it is uncommon enough that studying it broadens your technical toolkit. Using the NVI as the primary signal and the PVI as a same-side filter is a thoughtful way to avoid entering against an obviously stampeding crowd. The ATR-based stops and targets adapt to volatility automatically, and the strict new-bar gate avoids repainting on unclosed candles.
Known limitations. The indices rely on tick volume, which is not true traded volume and can vary from broker to broker; a strategy tuned on one data feed may behave differently on another. As a trend-following system, it is designed for directional markets and can suffer repeated small losses during sideways, choppy conditions where crossovers occur frequently without follow-through. Because it flips on opposite signals, a series of whipsaws can lead to a cluster of quick entries and exits. The fixed Lots size does not scale with your account, so position sizing must be managed manually.
Where it may underperform. Low-liquidity sessions, news-driven volatility spikes, and range-bound markets are the classic weak spots for any crossover trend system. No indicator predicts the future; the NVI/PVI relationship may indicate a shift in participation, but it can be wrong, and it can lag. Treat every signal as a probabilistic idea to be tested, not a certainty.
Risk Management Tips
Sound risk management matters far more than any single indicator setting. Consider these general principles as part of your education:
- Risk a small, fixed fraction per trade. Many educational sources suggest never risking more than 1–2% of account equity on a single position. Because this EA uses a fixed lot size, you may need to adjust
LotsandSlMultso the actual money at risk stays within that band. - Test on a demo account first. Run the strategy on a demo or paper account across different market conditions before ever considering real capital. Observe how it behaves in trends, ranges, and news events.
- Understand drawdown. Every strategy endures losing streaks. Know the maximum peak-to-trough decline you are willing to tolerate, and size your positions so a normal drawdown does not force you out.
- Diversify and avoid over-optimization. Tuning parameters until a backtest looks perfect ("curve-fitting") rarely holds up in live markets. Prefer robust settings that work reasonably across a range of conditions.
- Keep a trading journal. Recording why each trade was taken helps you learn from the strategy's behavior rather than just its outcomes.
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
- Expert Advisor: VolumeIndexConvictionTrend.ex5 (30 downloads)
- Source Code: VolumeIndexConvictionTrend.mq5 (28 downloads)
- Documentation: VolumeIndexConvictionTrend.pdf (33 downloads)