volume()
volume([nRelativeOffset] [, nNumBars [, Symbol ] ])
- nRelativeOffset: Offset to bar. 0 is most recent bar, -1 is next bar, etc.
- nNumBars: Number of bars to retrieve (a negative number)
- Symbol: The symbol to retrieve data for.
Examples:
volume(0); gets the volume value for the current price bar and symbol
volume(-1); gets the next-to-last volume value for the current symbol
volume(0, "IBM"); gets the most recent volume for IBM
volume(0, -10, "INTC"); gets the last 10 volume values for INTC and places them in an array
This is a shortcut to getValue, requesting the volume bars. See getValue for more information.