Difference between revisions of "Ticks"

From MultiCharts
Jump to navigation Jump to search
(Created page with "Returns the total number of ticks for the current bar if '''Build Volume On''' is set to '''Tick Count.''' Returns the total volume for the current bar if '''Build Volume On'...")
 
Line 15: Line 15:
  
 
==== Usage ====
 
==== Usage ====
[[Ticks]]
+
<syntaxhighlight>Ticks</syntaxhighlight>
+
 
 
==== Example ====
 
==== Example ====
 
Plot the number of ticks in the current bar ('''Build Volume On''' is set to '''Tick Count'''):  
 
Plot the number of ticks in the current bar ('''Build Volume On''' is set to '''Tick Count'''):  

Revision as of 12:22, 20 January 2012

Returns the total number of ticks for the current bar if Build Volume On is set to Tick Count. Returns the total volume for the current bar if Build Volume On is set to Trade Volume.

With Build Volume On is set to Tick Count:

  - the value of 1 will be returned for 1-tick charts
  - the total number of ticks in the current bar will be returned for multi-tick, volume, and time-based charts 

With Build Volume On is set to Trade Volume:

  - the volume of the current tick will be returned for 1-tick charts
  - the total volume of the current bar will be returned for multi-tick, volume, and time-based charts

Please note that most data feeds provide only a limited history of tick and volume data; storing real-time feed data will ensure the availability of historical tick and volume data.

Usage

Ticks

Example

Plot the number of ticks in the current bar (Build Volume On is set to Tick Count):

Plot1(Ticks,"Ticks");

Plot the volume of the current bar (Build Volume On is set to Trade Volume):

Plot1(Ticks,"Volume");