Difference between revisions of "Ticks"

From MultiCharts
Jump to navigation Jump to search
 
(2 intermediate revisions by 2 users not shown)
Line 4: Line 4:
 
With '''Build Volume On''' is set to '''Tick Count:'''
 
With '''Build Volume On''' is set to '''Tick Count:'''
  
- the value of 1 will be returned for 1-tick charts
+
* 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.
- 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:'''
 
With '''Build Volume On''' is set to '''Trade Volume:'''
  
- the volume of the current tick will be returned for 1-tick charts
+
* 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.
- 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.   
 
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 ====
+
== Usage ==
 
<syntaxhighlight>Ticks</syntaxhighlight>
 
<syntaxhighlight>Ticks</syntaxhighlight>
  
==== Example ====
+
== Notes ==
 +
* See [[DownTicks]] and [[UpTicks]] to respectively get the number of downticks and the number of upticks for a bar.
 +
* The range of returned values is limited by the [[MaxBarsBack]] setting.
 +
 
 +
== Examples ==
 
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'''):  
  
<syntaxhighlight>Plot1(Ticks,"Ticks");</syntaxhighlight>  
+
<syntaxhighlight>Plot1(Ticks, "Ticks");</syntaxhighlight>  
  
 
Plot the volume of the current bar ('''Build Volume On''' is set to '''Trade Volume'''):  
 
Plot the volume of the current bar ('''Build Volume On''' is set to '''Trade Volume'''):  
  
<syntaxhighlight>Plot1(Ticks,"Volume");</syntaxhighlight>
+
<syntaxhighlight>Plot1(Ticks, "Volume");</syntaxhighlight>
 
 
  
 
[[Category:Data Information/General]]
 
[[Category:Data Information/General]]

Latest revision as of 16:44, 20 November 2015

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

Notes

  • See DownTicks and UpTicks to respectively get the number of downticks and the number of upticks for a bar.
  • The range of returned values is limited by the MaxBarsBack setting.

Examples

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");