Difference between revisions of "BarStatus"

From MultiCharts
Jump to navigation Jump to search
(Created page with "Returns a numerical value, indicating the status of the most recent tick in the current bar of the specified data series. A value of 0 indicates that the tick is the opening ...")
 
Line 10: Line 10:
 
   
 
   
 
==== Example ====
 
==== Example ====
[[BarStatus(1)]]  [[will]] return a value of 2 if the current tick in the data series with the data number 1 is the closing tick of a bar  
+
<syntaxhighlight>BarStatus(1)]]  [[will]] return a value of 2 if the current tick in the data series with the data number 1 is the closing tick of a bar</syntaxhighlight>
  
  
  
 
[[Category:Data Information/General]]
 
[[Category:Data Information/General]]

Revision as of 11:50, 19 January 2012

Returns a numerical value, indicating the status of the most recent tick in the current bar of the specified data series. A value of 0 indicates that the tick is the opening tick of the bar, 1 indicates that the tick is within the bar, and 2 indicates that the tick is the closing tick of the bar.

Usage

BarStatus(DataNum)

Where: DataNum - a numerical expression specifying the data number of the series

If DataNum is not specified, a value for the current data series will be returned.

Example

BarStatus(1)]]  [[will]] return a value of 2 if the current tick in the data series with the data number 1 is the closing tick of a bar