Difference between revisions of "Volume"
Jump to navigation
Jump to search
(Created page with "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...") |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 2: | Line 2: | ||
For tick and volume-based charts, and time-based charts with resolutions of 24 hours or less: | 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: | 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'''. | |
Please note that 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. | Please note that 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. | ||
− | ==== | + | == Usage == |
− | [[ | + | <syntaxhighlight>Volume</syntaxhighlight> |
+ | |||
+ | == Notes == | ||
+ | * The range of returned values is limited by the [[MaxBarsBack]] setting. | ||
− | == | + | == Examples == |
Plot the volume of the current bar: | Plot the volume of the current bar: | ||
− | <syntaxhighlight>Plot1(Volume,"Volume");</syntaxhighlight> | + | <syntaxhighlight>Plot1(Volume, "Volume");</syntaxhighlight> |
− | |||
Plot the volume of the previous bar: | Plot the volume of the previous bar: | ||
− | <syntaxhighlight>Plot1(Volume Of 1 Bar Ago,"Previous bar's volume");</syntaxhighlight> | + | <syntaxhighlight>Plot1(Volume Of 1 Bar Ago, "Previous bar's volume");</syntaxhighlight> |
− | |||
Plot the volume of two bars ago: | Plot the volume of two bars ago: | ||
− | <syntaxhighlight>Plot1(Volume[2],"Volume 2 bars ago");</syntaxhighlight> | + | <syntaxhighlight>Plot1(Volume[2], "Volume 2 bars ago");</syntaxhighlight> |
− | |||
− | |||
[[Category:Data Information/General]] | [[Category:Data Information/General]] |
Latest revision as of 16:01, 28 February 2012
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.
Please note that 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.
Usage
Volume
Notes
- The range of returned values is limited by the MaxBarsBack setting.
Examples
Plot the volume of the current bar:
Plot1(Volume, "Volume");
Plot the volume of the previous bar:
Plot1(Volume Of 1 Bar Ago, "Previous bar's volume");
Plot the volume of two bars ago:
Plot1(Volume[2], "Volume 2 bars ago");