ACADEMY / Indicators and signals

Stock volume in trading: what it shows and how to test 3 signals

Trading volume counts the shares or contracts that changed hands in a bar and shows how much participation stood behind a move, not its direction. Write it as a volume spike, a relative-volume ratio or a breakout condition, and test it as a filter on an existing rule against a baseline run without it.

By · Published · updated · Editorial policy

Contents
  1. What does trading volume tell a trader?
  2. How does volume differ between stocks and futures?
  3. Which volume signals can you write as testable rules?
  4. Why do the open and close carry the most volume?
  5. How do you test a volume filter without overfitting it?
  6. What can volume not tell you?
  7. Frequently asked questions
  8. References

What does trading volume tell a trader?

Trading volume is the number of shares or contracts that changed hands in one bar. It tells you how much participation stood behind a price move, not which way price goes next. Stock volume is summed across many venues; futures volume comes from one exchange per contract month. Test it as a filter on another rule, not as an entry alone.

Think of a football match. A goal scored in a full stadium and a goal scored in an empty one give the same score, but one of them was watched by a crowd. Volume is the crowd. A five-point rise in an index future on a quiet bar and the same five-point rise on a bar with three times the usual volume look identical on a price-only chart. The volume bar underneath is the only thing that separates them.

Two details matter when you turn this into a rule. First, every trade has one buyer and one seller, so a bar's volume counts participation on both sides equally. Volume alone never says who was more aggressive; that needs a separate measure that classifies each trade by the side that crossed the spread, which is what cumulative delta does. Second, volume belongs to a bar size. The same five minutes of trading give one volume number on a 5-minute bar and are split into five numbers on 1-minute bars, so any threshold you write only has meaning for the bar size it was tested on.

Two identical five-bar price rises end at the same price. The left rise traded at 0.4 times average volume with few traders. The right rise traded at 2.5 times average volume with many traders. Same rise, different crowd Both end at the same price 0.4× 2.5× Few traders Many traders Price alone cannot tell them apart. So: check the volume bar too.
The same price move with thin and with crowded participation. Price alone cannot tell the two apart; volume can.

How does volume differ between stocks and futures?

Stock volume is a sum across many trading venues, while futures volume comes from one exchange and one contract month, so each series needs a different cleaning step before a rule can use it. A stock trades on several exchanges and in dark pools at the same time. A dark pool is a private trading venue that matches orders without displaying them publicly; its trades are reported afterwards and added to the consolidated total. A data feed may give you that consolidated total, or only the primary exchange, or only the regular session without pre-market and after-hours trades. Each choice produces a different number for the same day, and a threshold tuned on one of them will fire differently on another.

A futures contract month is its own instrument. The volume you see for an E-mini Nasdaq-100 future is the volume of that month on CME, with the micro contract counted separately even though ten micros equal one E-mini in notional value (the E-mini is $20 × index, the micro is $2 × index, from the CME contract specifications). Because every month expires, volume migrates to the next month in the days before expiry. A continuous series that joins months must switch on volume, not on the calendar, or the volume bars around each expiry collapse for the wrong reason. How that switch works is covered in Futures backtesting done right: specs, rollover, tick value, costs. A futures market also trades almost around the clock, so a "daily" volume figure depends on which session the bar covers; checking that is part of backtest data quality: gaps, bad ticks, time zones and rolls.

PropertyStocksFutures
Unit countedSharesContracts
Venues summedMany exchanges and dark pools, or one primary exchange, depending on the feedOne exchange, one contract month
Contract or share rollNone; the share is the same instrument for yearsVolume moves to the next month before expiry
Session shapeRegular session plus thin pre-market and after-hours tradingDay session overlapping cash hours plus a long, thin overnight session
Typical data gapsVenue coverage changes, split adjustmentsRoll dates, session definition, micro and full-size counted apart
A table comparing stock and futures volume. Stocks count shares, summed over many venues, with no roll, mostly daytime trading, and gaps from splits and venues. Futures count contracts on one exchange, roll at expiry, trade nearly 24 hours, and have gaps from rolls and sessions. Where volume comes from Same word, different numbers Stocks Futures Unit Shares Contracts Venues Many venues One exchange Roll None Rolls at expiry Session Mostly daytime Nearly 24 h Gaps Splits, venues Rolls, sessions
Where the volume number comes from decides what it means and what must be cleaned before a rule reads it.

Which volume signals can you write as testable rules?

Three volume signals translate into exact rules: a volume spike against a moving average of volume, relative volume at the same time of day, and a breakout that only counts when volume clears a threshold. Each one is a ratio or a comparison that a backtest can evaluate on every bar without judgment.

A volume spike is a bar whose volume is at least k times the average volume of the previous N bars. A relative volume reading is a bar's volume divided by the average volume of the bar at the same time of day over the previous D days. A volume-confirmed breakout is a price breakout (for example a close above the highest high of the last 20 bars) that is accepted as an entry only when relative volume on the breakout bar is at least k. The first signal is simple but, on intraday bars, it fires at the open and close for reasons the next section explains. The second signal fixes that by comparing like with like, and the third attaches the second to a price rule, which is the use this article argues for.

SignalExact ruleParametersBest used as
Volume spikevolume ÷ average(volume, N bars) ≥ kN (for example 20), k (for example 2.0)Daily bars, event detection
Relative volumevolume ÷ average of the same time-of-day bar over D days ≥ kD (for example 20), k (for example 1.5)Intraday filter on another rule
Volume-confirmed breakoutclose above 20-bar high AND relative volume ≥ kLookback, D, kEntry filter for breakout strategies

Hypothetical example

Today's 10:00 bar on a 30-minute chart shows 3,000 contracts. The 10:00 bar on each of the previous 20 trading days averaged 1,500 contracts. Relative volume is 3,000 ÷ 1,500 = 2.0. With a threshold of 1.5, this bar passes the filter. A 13:00 bar with 1,200 contracts, against a 13:00 average of 900, has relative volume 1.33 and does not pass, even though it is a busy bar for that hour.

Hypothetical example: today's 10:00 bar carries twice the average volume of the 10:00 bars of the past 20 days. The ratio is 2.0, which clears a threshold of 1.5. Compare with the same hour 10:00 bars, contracts, hypothetical Avg = 1.0× 2× avg Rule: 1.5× 2.0× passes Past 20 days Today Today is 2.0× its usual, above 1.5. So: put the rule on the ratio.
Relative volume compares one bar with the same time-of-day bar on past days. The ratio is the number a rule can threshold.

The formula, settings and an ES test of the second signal are in relative volume indicator (RVOL): formula, thresholds and how to test it. The rest of this article treats relative volume as the ratio to test, because it is the only one of the three that behaves the same at 10:00 and at 13:00.

Why do the open and close carry the most volume?

Intraday volume follows a U-shape, highest in the first and last part of the session and lowest around midday, so a threshold must compare each bar with the same bar on earlier days rather than with the day's average. The reason is practical. Orders that gathered overnight, including reactions to news and to foreign markets, execute in the first minutes. Index funds, closing auctions and traders who flatten before the close add a second burst at the end. In between, many participants wait. A fixed threshold such as "twice the 20-bar average" therefore fires almost only at the ends of the session and almost never at midday, which turns a volume filter into a time-of-day filter without the trader noticing.

For US equity-index futures such as ES and NQ, the heaviest volume sits inside the US cash equity session, which runs from 9:30 to 16:00 New York time, with much thinner trading through the overnight hours. Exchanges change session times, so check the exchange's contract page before fixing a time in a rule; the free futures market hours tool shows each session in your own time zone. A rule that uses the same relative-volume threshold on an overnight bar and on a cash-session bar is still comparing like with like, because each bar is measured against its own time-of-day baseline, but the overnight sample is small and a few trades move the ratio a long way.

Illustrative volume per half hour from 9:30 to 16:00: tallest at the open and close, lowest at midday. A fixed line crosses only the end bars, while a same-hour average follows the U-shape and reveals a spike at 13:00. A fixed line is a clock Volume per half hour, illustration Fixed line Same-hour average 9:30 13:00 16:00 A fixed line fires only at the ends. So: compare with the same hour.
A fixed threshold crosses only the open and close bars. A time-of-day baseline follows the U-shape, so a spike at 13:00 can still be seen.

How do you test a volume filter without overfitting it?

Run the strategy without the filter first, add the filter at one threshold, compare the net average trade and the trade count, then sweep the threshold and keep it only if neighbouring values behave alike and the out-of-sample result holds. Overfitting is tuning a rule so closely to one stretch of history that it describes noise in that stretch instead of a repeatable pattern. A volume filter is easy to overfit because it removes trades, and removing trades from a finished backtest almost always makes the surviving average look better, whether or not the filter carries information.

  1. Run the baseline without the filter. Note the net average trade after commission and slippage, the trade count and the maximum drawdown. These are the numbers the filter must beat.
  2. Add the relative-volume filter at one threshold you wrote down in advance, for example 1.5, with the same costs and the same next-bar execution.
  3. Compare. A useful filter raises the net average trade and keeps enough trades that the total net result and the drawdown also improve. A filter that doubles the average trade but keeps one trade in ten has mostly thrown away the sample.
  4. Sweep the threshold from 1.0 to 3.0 and look at the net average trade at each step. A plateau, where 1.5, 1.75, 2.0 and 2.5 all look alike, is evidence. A single tall value with poor neighbours is luck. The reasoning is the same as in parameter stability: plateau or lucky spike?.
  5. Run the chosen threshold once on out-of-sample data and judge it by the rule you wrote before looking, as described in how to split in-sample and out-of-sample data.
Five steps in order: run the baseline without a filter, add the filter at one threshold, compare average trade and trade count, sweep thresholds 1.0 to 3.0 for a plateau, then run once on out-of-sample data. Test a filter in five steps Baseline first, out-of-sample last 1 2 3 4 5 Run baseline, no filter Add filter at one threshold Compare average and trade count Sweep 1.0 to 3.0, seek a plateau Run once on out-of-sample
The order keeps the baseline honest and the threshold chosen before the out-of-sample data is seen.

Hypothetical example

Baseline: 800 trades, net average trade $40, total $32,000, maximum drawdown $9,000. With a relative-volume filter at 1.5: 450 trades, net average trade $55, total $24,750, maximum drawdown $6,500. The average trade improved and the drawdown fell, but the total fell too, because 350 trades were removed. Whether that trade is worth it depends on the account: a trader sizing by drawdown can run more contracts on the filtered version. The sweep shows $52, $55, $57, $56 and $53 at thresholds 1.25 through 2.5, a plateau, so 1.5 goes to the out-of-sample run.

Hypothetical net average trade for thresholds 1.0 to 3.0: the left chart rises and stays level from 1.25 to 2.5, a plateau to keep; the right chart is flat except one tall bar at 1.75, a spike to reject. Keep a plateau, not a spike Net avg trade by threshold, hypothetical 1.0 3.0 1.0 3.0 Plateau: keep Spike: reject Agreeing neighbours are evidence. So: reject a lone tall bar.
Neighbouring thresholds that agree are evidence. One tall bar among flat ones is a coincidence of that history.

Sweeping seven thresholds is itself a small search, and the best of seven is flattered by selection. Sullivan, Timmermann and White (1999) tested a large universe of technical rules, including volume-based ones, and showed how much of the apparent best-rule performance disappears once the number of rules tried is accounted for; Bailey, Borwein, López de Prado and Zhu (2014) give the general result that the best backtest of many is inflated. A sweep of thresholds is small enough to survive this if the plateau is wide and the out-of-sample run is read once. When the volume filter is part of a larger search, MultiAlphas (Valynox) treats the threshold as one parameter range inside strategy generation, so every candidate carries its own filter value and is evaluated with the same costs, rather than having a filter bolted onto a finished strategy afterwards.

What can volume not tell you?

High volume marks that something happened, not what happens next, and different data sources report different numbers for the same bar, so volume earns its place as a filter on another rule rather than as an entry signal on its own. A high-volume bar at a breakout level can be the start of a continuation, as new buyers chase the move, or the end of one, as large holders use the crowd to sell. The volume bar looks the same in both cases. Only the price rule that follows, such as a close held above the level on the next bar, picks a side.

Two panels start from the same high-volume up bar at a breakout level. On the left price continues higher. On the right price reverses and closes below the level. The volume signal is the same, so only a price rule can pick the entry. Same volume, two endings The marked bar is the same in both Level Level Signal Signal Continues Reverses Volume flags the bar, not the side. So: let a price rule pick the entry.
The same high-volume bar can begin a continuation or a reversal. The price rule decides the entry; volume only decides whether the bar is worth considering.

The second limit is the number itself. A stock feed that counts the primary exchange shows a smaller figure than a consolidated feed; a futures feed may or may not count spread trades and may report the micro contract apart from the full-size one; some spot forex feeds show tick count, the number of price changes, instead of traded units. A relative-volume ratio is more robust to this than a raw count, because the same source sits in the numerator and the denominator, but a threshold tuned on one feed still needs a check on the feed your platform will use live. Cumulative indicators such as on balance volume (OBV) inherit the same source dependence, since they add volume bar by bar.

The next step is one evening of work. Take a strategy you already have, run it without any volume condition and write down its net average trade, trade count and maximum drawdown. Add a relative-volume filter at 1.5 on a 20-day same-time baseline, run again, and compare the three numbers side by side. If the filter changes all three in the direction you want, sweep the threshold and look for the plateau before you let the filter near your out-of-sample data.

Frequently asked questions

Is high volume bullish or bearish?

Neither on its own. Volume counts both the buyer and the seller of every trade, so a high-volume bar shows that many participants were active, not which side was in control. A high-volume bar at a breakout can begin a continuation or a reversal. A price rule, such as where the next bar closes relative to the level, decides the direction; volume only says whether the bar deserves attention.

What is relative volume (RVOL) in trading?

Relative volume is a bar's volume divided by the average volume of the same time-of-day bar over a set number of previous days, often 20. A reading of 2.0 means the bar carried twice its usual volume for that hour. It corrects for the intraday U-shape, in which the open and close are always busy and midday is always quiet, so a threshold such as 1.5 means the same thing at 10:00 and at 13:00.

Does volume work the same way on futures as on stocks?

The idea is the same, but the number comes from a different place. Stock volume is summed across many exchanges and dark pools, and a feed may show all of them or only the primary exchange. Futures volume belongs to one exchange and one contract month, so it migrates to the next month before expiry and a continuous series must roll on volume. Micro and full-size contracts are counted separately.

How do I know if my volume filter is overfit?

Compare it with a baseline run without the filter, using net average trade, trade count and maximum drawdown together. Then sweep the threshold across neighbouring values. If several neighbouring thresholds give similar results, the filter reflects something stable; if only one value looks good, it reflects that history. Finish with a single out-of-sample run judged by a rule written before you looked.

References

  • Sullivan, R., Timmermann, A., & White, H. (1999). Data-Snooping, Technical Trading Rule Performance, and the Bootstrap. The Journal of Finance, 54(5), 1647–1691.
  • Bailey, D. H., Borwein, J., López de Prado, M., & Zhu, Q. J. (2014). Pseudo-Mathematics and Financial Charlatanism: The Effects of Backtest Overfitting on Out-of-Sample Performance. Notices of the American Mathematical Society, 61(5), 458–471.
  • CME Group. E-mini Nasdaq-100 Futures Contract Specs. https://www.cmegroup.com/markets/equities/nasdaq/e-mini-nasdaq-100.contractSpecs.html
  • CME Group. Micro E-mini Nasdaq-100 Index Futures Contract Specs. https://www.cmegroup.com/markets/equities/nasdaq/micro-e-mini-nasdaq-100.contractSpecs.html