Six indicators read volume, the number of contracts that traded in each candle. You can use them in the Indicator condition block, as an Indicator signal, and in the condition exit. They work the same way in Backtest and in the Bot. Your indicator can use them too. The value area reads volume too, and so do twenty-two more, such as money flow and the A/D line, and the weekly and swing VWAPs.
The indicators
- VWAP: the average price traded since the session opened, with each candle counted by its volume. It starts again at each session's open (5pm Chicago time for futures).
- VWAP bands: VWAP with a band above and below it. You choose how many standard deviations wide.
- Anchored VWAP: VWAP that starts from a time of day you choose instead, in New York time.
- Volume average: the average volume of your last few candles.
- Relative volume: this candle's volume divided by that average. 2 means twice the average.
- On-balance volume (OBV): a running total that adds a candle's volume when it closes up and takes it away when it closes down.
VWAP, VWAP bands, the volume average and OBV are worked out the way TradingView works them out. Relative volume and anchored VWAP are worked out as written above.
Where the volume comes from
In the Bot, volume is the contracts your broker reports traded in each candle, counted on your computer. If your app lost its connection during a candle, that candle's volume isn't known.
In Backtest on your own chart file, volume comes from the file. On TradingView, turn on the Volume indicator on your chart before you export, so the file includes it. Your file's volume is the exchange's, so it is close to your broker's but may not be exactly the same.
When volume isn't known
A volume indicator never guesses. If a candle's volume isn't known, the indicator starts again and has no value until it has enough known candles. VWAP waits for the next session's open. While it has no value, your rule doesn't let trades in.
A test that needs volume on a file or dates that have none is refused, and the page says so plainly.
In your indicator
You can pick any of the six as a condition in your indicator. You choose what must be true, and you type every number. The indicator reads the volume your charting platform shows.
- On TradingView, NinjaTrader and Quantower it reads the chart's volume.
- On MetaTrader 5 it reads real volume, the contracts traded. Many brokers give only tick volume, the number of price changes. Then the volume condition marks nothing, and the box on the chart says why.
- cTrader only gives tick volume, so a volume condition can't go on cTrader.
When a chart has no traded volume, your indicator marks nothing and its summary box says so. If a candle had price changes but no trades, MetaTrader 5 and Quantower show its volume as unknown, where the Bot reads 0. That can only mean fewer marks there.
If your chart shows only the day session, it misses the night's candles. Then VWAP waits for a full session, and a longer candle that is missing some of its time shows nothing.
Every number is yours
Each row asks for exactly the numbers its indicator reads: the band width, the start time or the number of candles. Nothing has a default.