Positive Volume Index vs Negative Volume Index
Positive volume index vs negative volume index: what each line accumulates, the formula, the volume tie rule almost nobody prints, and how to test it.
Both lines accumulate the same thing, the bar's percentage price change, but they take turns. The Negative Volume Index (NVI) moves only on bars where volume fell from the bar before, the Positive Volume Index (PVI) only on bars where volume rose, so between them they sort every bar in the series into one line or the other.
The published descriptions leave out three things: what happens when volume is unchanged, which of three different constructions your platform is drawing, and what the number on the scale measures.
What is the difference between the positive and negative volume index?
NVI counts price change on quiet bars, PVI counts price change on busy bars, and "quiet" and "busy" mean nothing more than lower or higher volume than the previous bar. Neither line looks at volume size, only at its direction, and neither one accumulates volume itself.
The reason anyone splits bars this way is a premise, not a result. StockCharts states it: "The assumption is that the smart (informed) money is at work when volume decreases and the not-so-smart (uninformed) money is at work when volume increases." TC2000 reads both lines the same way, in two matching sentences on its help page: "Values for PVI greater than their one year Moving Average are commonly seen as bullish." and "Values for NVI greater than their one year Moving Average are commonly seen as bullish." Treat that as the idea behind the indicator rather than as evidence for it.
Wikipedia's account: "In 1936, Paul L. Dysart, Jr. began accumulating two series of advances and declines distinguished by whether volume was greater or lesser than the prior day's volume", and he "called the cumulative series for the days when volume had been greater than the prior day's volume the Positive Volume Index (PVI), and the series for the days when volume had been lesser the Negative Volume Index (NVI)". Norman Fosback's 1976 book Stock Market Logic came forty years later and changed the arithmetic. Tradingsim says the indicator "was first introduced by Norman Fosback in the book Stock Market Logic", which does not match Wikipedia's dated account or LuxAlgo's, both of which credit Dysart in the 1930s.
What is the positive volume index formula, and the negative volume index formula?
This is Fosback's 1976 form:
If volume rose: PVI = previous PVI x (1 + (Close - Previous Close) / Previous Close)
Otherwise: PVI = previous PVI
If volume fell: NVI = previous NVI x (1 + (Close - Previous Close) / Previous Close)
Otherwise: NVI = previous NVI
Wikipedia, daytrading.com, tradingsim.com and earn2trade.com all print a multiplicative form like this one. LuxAlgo describes it in words and says Fosback's "percent-change form shown here is the modern standard". TC2000 prints no formula at all and sends you elsewhere for one: "Read more about PVI/NVI at Wikipedia." StockCharts publishes an additive wording instead, which is a different indicator.
Dysart's original 1936 construction is different. Wikipedia: "1) if today's volume is less than yesterday's volume, subtract declines from advances, 2) add the difference to the cumulative NVI beginning at zero". That version needs the count of advancing and declining issues in a market, so it cannot be computed from a price series.
Are PVI and NVI in ChartLabs?
Both are, as Positive Volume Index and Negative Volume Index in the chart's Indicators menu, in the Standard list under the Volume heading, and each opens in its own pane below price. They use Fosback's multiplicative form, start at 1000, and have one setting each: EMA Length, 255 by default, which draws the one-year average beside the line. A bar whose volume is unchanged counts for neither line, so neither moves on it.
What happens on a bar where volume is unchanged?
Daytrading.com writes the rule down, and it is a page that covers the equal bar: its condition is "volume is less than or equal to the previous day's volume", and PVI holds yesterday's value through it. Wikipedia's wording, tradingsim's, earn2trade's, LuxAlgo's "staying flat otherwise" and StockCharts' numbered steps all describe only "greater" and "lesser", which leaves the equal bar outside the definition.
This check is arithmetic on a series we constructed, not a measurement on a market symbol: 400 bars of closes and volumes, built so that the base volume series contained no exact ties at all, then a second copy with 57 exact volume ties forced into it. Running NVI twice on that second copy, once reading a tie as a quiet bar and once as neither, the two finished 1.85% apart, 1126.0932 against 1146.9487 from the same seed of 1000. They also crossed their own 255-period EMA zero times against four times, on different bars, with the same prices, the same volume, the same settings and one word of definition changed.
So before you test anything with this indicator, write your tie rule down. The constructed series says nothing about how often ties happen on a real chart: its base volume series had none, which is why they had to be forced in. Tie frequency is a property of your data feed, so do not assume ties are rare.
A worked example with round numbers
An example rather than a recommendation, with round numbers so you can follow the arithmetic. Both lines start at 1000.
| Bar | Close | Volume | Volume vs prior | Price change | NVI | PVI |
|---|---|---|---|---|---|---|
| 1 | 100.00 | 1,000 | - | - | 1000.0 | 1000.0 |
| 2 | 110.00 | 800 | fell | +10% | 1100.0 | 1000.0 |
| 3 | 99.00 | 1,200 | rose | -10% | 1100.0 | 900.0 |
| 4 | 103.95 | 1,200 | unchanged | +5% | 1155.0 | 900.0 |
Bar 2 is a down volume bar, so only NVI moves, by the full 10%. Bar 3 is an up volume bar, so only PVI moves. Bar 4 is the tie: the table reads it as a quiet bar, so NVI takes the 5% and PVI stands still. Read the tie the other way and NVI finishes at 1100.0 instead.
The tie reading shows up in a check you can run on your own numbers. With the tie assigned to NVI, the two lines multiply back to the whole move: 1155.0 x 900.0 / 1000 is 1039.5, and buying at bar 1 and holding to bar 4 is 100.00 to 103.95, also 1039.5. Leave the tie bar out of both lines and that identity breaks. Every bar has to land in exactly one of the two lines for the pair to account for the whole move.
What start value should you use: 100, 1000, or today's close?
It does not matter. Every update multiplies the previous value, so two series started at different numbers stay in exact proportion at every bar, and a crossing of their own moving average happens on identical bars.
The sources offer three different starts. StockCharts: "Cumulative NVI starts at 1000". Wikipedia reports Fosback's suggestion of "a base index level such as 100". Earn2trade offers a third: "Sometimes there will be no previous PVI calculation, and in that case, traders can use the price calculation from today as yesterday's PVI". LuxAlgo calls the choice arbitrary, "an arbitrary seed such as 1000", and notes in its own symbol list that it is "commonly 1000; some platforms use 100".
On the constructed 400-bar series, NVI seeded at 1000 divided by NVI seeded at 100 came out as 10.0 at every single bar, the largest deviation being 9e-15, which is floating point dust. Seeded at that series' first close instead, 100.1765, it ended at 116.9527 against 1167.4671, and that ratio is exactly the ratio of the two seeds. Crossings of a 255-period EMA: two and two, on the same bars both times. The level changes and the shape does not, so no comparison of your reading against someone else's level means anything unless you both used the same seed.
What does the number itself mean?
NVI divided by its start value is the compounded return of the down volume bars. It is the equity curve of the quiet bars.
The constructed series reproduces that exactly. Of its 399 steps, 202 were down volume bars; the product of (1 + price change) over just those 202 bars is 1.167467, and NVI's last value divided by its seed is 1.167467, agreeing to 9e-16. The same identity holds for PVI over the 197 up volume bars. Multiply the two and divide by the seed and you get 1222.0866, which is exactly the whole move over the 400 bars, because every bar belongs to one line or the other.
An NVI at 1.2 times its start is not a score or a strength rating. It says the quiet bars, compounded together and with the busy bars taken out, have added 20%.
How do you read it: the one-year average
The convention on every source that gives one is the line against its own roughly one-year average. TC2000 applies it to both lines. StockCharts gives the number: "Apply a 255-day EMA for Signals".
The sources disagree about the average itself, which matters if you are comparing your chart with someone else's. Wikipedia says a one-year moving average. StockCharts and LuxAlgo both use a 255-day EMA. A simple average and an exponential average of the same length are not the same line, so a crossing on one is not automatically a crossing on the other.
The probability figures quoted for these two readings are old and narrow. Wikipedia traces them to Fosback and records the window: "These results were derived using a 1941-1975 test period. Modern tests might reveal different probabilities." They were produced on major US market indexes rather than on a currency pair or a single stock, and we do not reproduce them.
Which NVI is your platform drawing?
One name covers three constructions, and they produce different lines. Settle this before you trust any reading.
| Construction | Where it is published | What it does on a qualifying bar |
|---|---|---|
| Dysart 1936 | Wikipedia's account of the original | Subtracts declining issues from advancing issues and adds the difference, starting from zero |
| Fosback 1976, multiplicative | Wikipedia, daytrading.com, tradingsim.com, earn2trade.com, LuxAlgo | Multiplies the running value by (1 + percentage price change) |
| Additive wording | StockCharts, step 2 | Adds the percentage price change, times 100, to the running level |
StockCharts' own step 2 reads "Add the Percentage Price Change to Cumulative NVI when Volume Decreases", and its note says "The Price %Change was multiplied by 100 to reduce the number of decimal places needed". Adding percentage points to a level of 1000 is not the same operation as multiplying by (1 + the change). On the constructed 400 bars, from the same seed of 1000, the multiplicative version ended at 1167.4671 and the additive wording at 1015.7170, which is 13.00% lower. On that series both crossed their 255-period EMA twice, on the same bars, so the gap showed up in the level rather than in the crossings. A 255-period average on a 400-bar series leaves very little room either way, so read those crossing counts as illustrations of the mechanism and not as measurements of how often it happens.
A quicker test on your own chart: a multiplicative NVI drifts away from its start value over years, because it compounds, and an additive one stays near it, because it adds small numbers to a big one.
Can you use the volume index on a forex pair?
Dysart's original cannot be computed on a currency pair at all. It needs advancing and declining issues, and a single instrument has neither.
Fosback's form computes on anything with price and volume, but on a currency chart you should know what the volume number is. MetaQuotes writes the split into its own help, where a volume indicator's input is defined by market: "For the Forex market 'volume' means number of ticks (price changes) that appeared in the time interval. For stock securities volume means the volume of executed trades (in contracts or money terms)." So in MetaTrader, "volume rose" on a forex chart means one feed published more price updates, and a different feed can disagree about the same bar.
StockCharts says this about the indicator rather than the feed: "Remember that this indicator was designed for broad market indices and exchange volume. It can be used on stocks and ETFs, but NVI does not always act as expected".
Is the volume index built into MT4, MT5 or TradingView?
TradingView lists both by name on its own built-in indicators page, as "Negative Volume Index (NVI)" and "Positive Volume Index (PVI)". TC2000 documents both on one help page, under the title Positive Volume Index & Negative Volume Index, though without a formula.
MetaTrader publishes neither. MetaTrader 4's own help lists 29 technical indicators, and no volume index is among them. MetaTrader 5's help says 38 indicators are available in the platform and sorts them into trend indicators, oscillators, volume indicators and Bill Williams' indicators; the volume group holds exactly four entries, Accumulation/Distribution, Money Flow Index, On Balance Volume and Volumes. The MQL4 and MQL5 references, which list the indicator functions a script can call, hold 37 and 39 entries respectively, including the iCustom loader for custom indicators, and neither has a positive or negative volume index. So on either MetaTrader this is a custom indicator somebody has to write, and when you find one, check which of the three constructions it draws.
What about ChartLabs?
The 255-bar EMA beside each line is the StockCharts length. Because an unchanged-volume bar counts for neither line, on a chart with ties the pair will not multiply back to the whole move. And there is no automatic backtesting in ChartLabs: the indicator draws the line, and you test the rule yourself by stepping the chart.
The volume they read is the chart's own. ChartLabs bar volume is Dukascopy's indicative volume, summed over the bar. It is not a count of price updates. Treat it as a relative activity measure, not exchange volume. The legend always shows the volume of the bar under your cursor, and a Volume indicator can be added from the Indicators menu into its own pane below price, off until you add it. On-Balance Volume, Volume Ratio and Price Volume Trend are in the same menu.
That settles the two choices this indicator leaves open: ties count for neither line, and the seed is 1000. If you want ties read as quiet bars instead, write the pair yourself in the built-in Pine Script editor, where it is a few lines.
How is this different from On Balance Volume?
On Balance Volume signs the whole bar's volume by the direction of the close and adds that every bar. This pair ignores volume size entirely, sorts bars by whether volume rose or fell, and then accumulates price change.
ChartLabs has On Balance Volume built in, drawn as the OBV line plus a 30-bar simple average of it, and the average's length is its one setting. Our guide on On Balance Volume goes through that calculation on its own.
How do you write and test a rule from it?
Write down one line, one average, one direction, your tie rule and your start value. Without the last two the test cannot be repeated, not even by you. A testable rule reads like this: NVI, Fosback multiplicative form, seed 1000, ties counted as quiet bars, condition is NVI above its 255-day EMA. That is not a trade call and it says nothing about which direction pays. It is a stated condition, which is the thing a test needs.
Pick one symbol and one timeframe and stay on them; daily or higher is where this indicator was designed to live, and daytrading.com notes that "many charting software programs only accumulate volume data at the daily level or higher". Choose the test window before you start, so you cannot stop at a flattering date. Step forward one bar at a time, act only when the written condition is met, record every trade it produced with no edits afterwards, and read the result as one sample of one rule on one symbol.
Two columns in that log belong to this indicator specifically: which data source the volume came from, and which tie rule you applied. Without them nobody can reproduce your test, including you in six months.
ChartLabs is built for this part. You step through real historical data candle by candle, place trades by hand, and every trade keeps a snapshot of the chart as it was at entry, so the setup you judged is still there when you review it. Tags on each trade let you filter the analytics down to the bars where your condition was true. Our beginner's guide to backtesting a strategy covers the loop itself, forex backtesting covers session and spread effects, and backtesting accuracy covers the gap between a test and live trading.
Where does the volume index fall apart?
The premise has aged. LuxAlgo, which uses the indicator, says so on its own page: volume expansion today "is as often mechanical, rebalances, expirations, passive flows, as emotional". A quiet bar in 2026 is not obviously the same evidence it was in 1936.
Each line ignores about half the bars by construction. On the constructed 400-bar series the split was 202 steps to NVI and 197 to PVI. Whatever happened on the other half, that line did not see it.
And the input is an activity measure rather than exchange volume, as the ChartLabs section above sets out. That makes the indicator's basic question, did volume rise or fall, a question about how active one data source was rather than about traded size.
Try it on your own chart
The way to find out whether a volume index rule suits you is to test it by hand on data you trust, with the tie rule and the seed written down first. ChartLabs gives you cleaned data from Dukascopy, bar by bar replay and a trade log that records what you saw at entry. One plan, $20 a month or $200 a year: start the free trial, which runs 7 days and takes no credit card.
Related Topics
Related
Forex Backtesting: Test Your Strategy on Real Data
A practical guide to backtesting forex strategies: why session dynamics, spread variation, and pair-specific behavior change your results, what clean historical data actually means, and a five-step process for testing a strategy before you risk real capital.
Backtesting a Trading Strategy: A Beginner's Guide
What backtesting is, why it matters, and how to run one step by step: defining your rules, choosing clean historical data, stepping through the chart trade by trade, logging results, and reading the metrics that tell you whether your strategy has a real edge.
Backtesting Accuracy: How Slippage and Data Quality Matter
Why backtest results and live results drift apart, and what actually closes the gap: clean tick data, honest spread assumptions, and commission and slippage modelled directly on every trade you log.