# Volume Forecasting

Volume Forecasting is an indicator on [Vela](https://vela.luxalgo.com/chart), our next-generation charting platform, written in Pine Script®.

Volume Forecasting projects trading volume several bars ahead by extracting the periodic rhythm in a symbol's volume history. Historical forecasts plot against realized volume, with an interquartile range framing where activity tends to settle, so traders can anticipate busy and quiet windows before they arrive.

- Indicator in the LuxAlgo Library, by LuxAlgo, published Apr 20, 2023.
- Access: free.
- Concepts: [Seasonality Tooling](https://www.luxalgo.com/library/concept/seasonality-tooling/) (primary), [Intraday Time-of-day Effects](https://www.luxalgo.com/library/concept/intraday-time-of-day-effects/), [Relative Volume](https://www.luxalgo.com/library/concept/relative-volume/)
- Open on Vela: https://vela.luxalgo.com/chart?pineScriptCodeId=cmpwn736z00a0vhsg1rqeociu
- Page: https://www.luxalgo.com/library/indicator/volume-forecasting/

**Volume Forecasting** extrapolates the periodic behavior of trading volume to project activity several bars into the future: [seasonality tooling](https://www.luxalgo.com/library/concept/seasonality-tooling/) pointed at participation instead of price. The chart is segmented into equidistant intervals, and each forecast reads the median of the bars occupying the same slot across the last N intervals, bracketed by the first and third quartiles. Comparing those historical forecasts against realized volume shows at a glance how faithfully a symbol follows its own rhythm.

## How to Trade the Volume Forecasting?

- **Rising forecast**: slots where the projection climbs mark windows where activity has historically escalated, a cue to time entries and exits around the extra liquidity.
- **Forecast vs. realized volume**: a live print far above or below its projection flags a session behaving out of character.
- **Interquartile range**: the band frames the statistical expectation for where volume should settle; it spans the middle half of recent values for that slot, so prints far outside it stand out from the symbol's usual rhythm.

Forecast quality tracks periodicity: the more pronounced a security's volume cycle, the more precise the projection. Alongside the rest of the [time-and-seasonality tools](https://www.luxalgo.com/library/family/time-seasonality/), it answers when the market is likely to get busy, never which direction it will move.

## Volume Forecasting Settings

- **Median Memory**: the number of days feeding the median and quartile calculations. More memory steadies the forecast, less lets it adapt to recent cycles.
- **Forecast Window**: how many bars ahead the projection extends.
- **Auto Forecast Window**: sizes the window automatically so the forecast completes the current interval.

## Frequently Asked Questions

### Why doesn't Volume Forecasting work on some symbols?

It needs volume data to operate. On tickers whose feed reports no volume there is nothing to decompose, so no forecast can be drawn.

### How does it differ from Volume Surprise?

Volume Forecasting projects the expected volume path forward, while [Volume Surprise](https://www.luxalgo.com/library/indicator/volume-surprise/) scores how far already-printed volume deviates from its expectation. Many traders run them as a pair: one for planning, one for reacting.

### Is Volume Forecasting free?

Yes. It belongs to the free collection on the LuxAlgo Library. You can also load it into Quant, our coding agent, straight from this page and experiment with it on your own markets. You can also copy the source code from this page and run it anywhere Pine Script® runs.

## Related indicators

- [Seasonality Chart](https://www.luxalgo.com/library/indicator/seasonality-chart/) (Seasonality Tooling): markdown at https://www.luxalgo.com/library/indicator/seasonality-chart.md
- [Seasonality Widget](https://www.luxalgo.com/library/indicator/seasonality-widget/) (Seasonality Tooling): markdown at https://www.luxalgo.com/library/indicator/seasonality-widget.md
- [Buy Sell Calendar](https://www.luxalgo.com/library/indicator/buy-sell-calendar/) (Seasonality Tooling): markdown at https://www.luxalgo.com/library/indicator/buy-sell-calendar.md
- [Peak Trading Activity Graphs](https://www.luxalgo.com/library/indicator/peak-trading-activity-graphs/) (Seasonality Tooling): markdown at https://www.luxalgo.com/library/indicator/peak-trading-activity-graphs.md
- [Weekly Stacked Daily Changes](https://www.luxalgo.com/library/indicator/weekly-stacked-daily-changes/) (Seasonality Tooling): markdown at https://www.luxalgo.com/library/indicator/weekly-stacked-daily-changes.md
- [Day Of Week Price Distribution](https://www.luxalgo.com/library/indicator/day-of-week-price-distribution/) (Seasonality Tooling): markdown at https://www.luxalgo.com/library/indicator/day-of-week-price-distribution.md
- [Power Hour Trendlines](https://www.luxalgo.com/library/indicator/power-hour-trendlines/) (Intraday Time-of-day Effects): markdown at https://www.luxalgo.com/library/indicator/power-hour-trendlines.md
- [Power Hour Breakout Signals](https://www.luxalgo.com/library/indicator/power-hour-breakout-signals/) (Intraday Time-of-day Effects): markdown at https://www.luxalgo.com/library/indicator/power-hour-breakout-signals.md

---

Source: https://www.luxalgo.com/library/indicator/volume-forecasting/ (LuxAlgo Library). Free to use with attribution: https://www.luxalgo.com/library/license/
