×

Sign up and get MultiCharts free

Use its powerful simulation mode with data included out of the box. Just fill out the form and start honing your trading skills with a few clicks.

Changes - MultiCharts

Changes

Jump to navigation Jump to search

Symbol Volume

1,374 bytes added, 13:17, 1 March 2012
no edit summary
Returns the volume of the current bar.
 
For tick and volume-based charts, and time-based charts with resolutions of 24 hours or less:
* the volume traded on Up ticks will be returned if '''Build Volume On''' is set to '''Trade Volume'''
* the number of Up ticks in the current bar will be returned if '''Build Volume On''' is set to '''Tick Count'''
 
For time-based charts with resolutions of 1 day or more:
* the total volume traded will be returned if '''Build Volume On''' is set to '''Trade Volume'''
* the total number of ticks in the current bar will be returned if '''Build Volume On''' is set to '''Tick Count'''
 
== Note ==
Most data feeds provide only a limited history of volume and tick data; storing real-time feed data will ensure the availability of historical volume and tick data.
 
The range of returned values is not limited by the MaxBarsBack setting. This keyword can return the value of any bar of the data series.
 
== Usage ==
<syntaxhighlight>symbol_volume</syntaxhighlight>
 
== Example ==
Plot the volume of the current bar
<syntaxhighlight>Plot1(symbol_volume, "Volume");</syntaxhighlight>
 
Plot the volume of the previous bar:
<syntaxhighlight>Plot1(symbol_volume of 1 Bar Ago, "Previous Bar's Volume");</syntaxhighlight>
 
Plot the volume of two bars ago:
<syntaxhighlight>Plot1(symbol_volume[2], "Volume 2 bars ago");</syntaxhighlight>
 
 
[[Category:Data Information/General]]

Navigation menu