Difference between revisions of "BarType"

From MultiCharts
Jump to navigation Jump to search
Line 1: Line 1:
 
Returns a numerical value, indicating the resolution units of the data series that the study is applied to.  
 
Returns a numerical value, indicating the resolution units of the data series that the study is applied to.  
 
   
 
   
==== Usage ====
+
== Usage ==
  
<syntaxhighlight>Bartype|BarType</syntaxhighlight>
+
<syntaxhighlight>BarType</syntaxhighlight>
  
<br>The following values are returned for each type of resolution units:  
+
The following values are returned for each type of resolution units:  
  
<br>0 Ticks (Ticks & Contracts)
+
:'''0''' = Ticks (Ticks & Contracts),
<br>1 Intra-Day (Seconds, Minutes, & Hours)
+
:'''1''' = Intra-Day (Seconds, Minutes, & Hours),
<br>2 Days
+
:'''2''' = Days,
<br>3 Weeks
+
:'''3''' = Weeks,
<br>4 Months, Quarters, & Years
+
:'''4''' = Months, Quarters, & Years,
<br>5 Points & Changes
+
:'''5''' = Points & Changes.
  
==== Example ====
+
== Notes ==
 +
* See [[BarType_ex]] for more specific indicating which chart type is applied.
 +
 
 +
== Example ==
 
Assign a value, indicating the resolution units of the data series that the study is applied to, to Value1 variable:  
 
Assign a value, indicating the resolution units of the data series that the study is applied to, to Value1 variable:  
  
<syntaxhighlight>Value1=BarType;</syntaxhighlight>  
+
<syntaxhighlight>Value1 = BarType;</syntaxhighlight>  
 
   
 
   
 
[[Category:Data Information/General]]
 
[[Category:Data Information/General]]

Revision as of 11:38, 19 February 2012

Returns a numerical value, indicating the resolution units of the data series that the study is applied to.

Usage

BarType

The following values are returned for each type of resolution units:

0 = Ticks (Ticks & Contracts),
1 = Intra-Day (Seconds, Minutes, & Hours),
2 = Days,
3 = Weeks,
4 = Months, Quarters, & Years,
5 = Points & Changes.

Notes

  • See BarType_ex for more specific indicating which chart type is applied.

Example

Assign a value, indicating the resolution units of the data series that the study is applied to, to Value1 variable:

Value1 = BarType;