Volume
Returns the volume for a specific bar.
Syntax
Parameters
shift
: A number representing the shift from the current bar
Return Value
Returns a number
representing the trading volume during the specified bar.
Description
The Volume
method returns the trading volume for a bar at the specified shift from the current bar. Volume represents the total amount of trading activity during the bar's timeframe. The shift parameter determines which bar's volume to return:
0: Current bar
1: Previous bar
2: Two bars ago
And so on
Example
Last updated