Difference between revisions of "BarType ex"

From MultiCharts
Jump to navigation Jump to search
Line 1: Line 1:
An extended version of [[BarType.]] Indicates the resolution units more specifically.  
+
BarType_ex indicates the resolution units of a chart more specifically than [[BarType]] does.
  
Returns a numerical value, indicating the resolution units of the data series that the study is applied to.  
+
BarType_ex returns a numerical value, indicating the resolution units of the data series that the study is applied to.  
 
   
 
   
==== Usage ====
+
== Usage ==
  
<syntaxhighlight>Bartype_ex|BarType_ex</syntaxhighlight>
+
<syntaxhighlight>BarType_ex</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>1 Ticks
+
:'''1''' = Ticks,
<br>2 Minutes
+
:'''2''' = Minutes,
<br>3 Hours
+
:'''3''' = Hours,
<br>4 Days
+
:'''4''' = Days,
<br>5 Weeks
+
:'''5''' = Weeks,
<br>6 Months
+
:'''6''' = Months,
<br>7 Years
+
:'''7''' = Years,
<br>8 Volume
+
:'''8''' = Volume,
<br>9 Seconds
+
:'''9''' = Seconds,
<br>10 Quarters
+
:'''10''' = Quarters,
<br>11 Points
+
:'''11''' = Points,
<br>12 Change
+
:'''12''' = Change,
<br>13 Points (Original)
+
:'''13''' = Points (Original),
<br>14 - Point & Figure
+
:'''14''' = Point & Figure,
<br>15 - Kagi
+
:'''15''' = Kagi,
<br>16 - Renko
+
:'''16''' = Renko,
<br>17 - Line Break
+
:'''17''' = Line Break,
<br>18 - Heikin Ashi
+
:'''18''' = Heikin Ashi.
  
==== Example ====
+
== 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 the Value1 variable:  
 
 
<syntaxhighlight>Value1=BarType_ex;</syntaxhighlight>
 
  
 +
<syntaxhighlight>Value1 = BarType_ex;</syntaxhighlight>
  
 +
Print a message when the user uses a volume chart":
 +
<syntaxhighlight>
 +
if BarType_ex = 8 then
 +
  Print("This is a volume chart.");
 +
</syntaxhighlight>
  
 
[[Category:Data Information/General]]
 
[[Category:Data Information/General]]

Revision as of 11:36, 19 February 2012

BarType_ex indicates the resolution units of a chart more specifically than BarType does.

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

Usage

BarType_ex

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

1 = Ticks,
2 = Minutes,
3 = Hours,
4 = Days,
5 = Weeks,
6 = Months,
7 = Years,
8 = Volume,
9 = Seconds,
10 = Quarters,
11 = Points,
12 = Change,
13 = Points (Original),
14 = Point & Figure,
15 = Kagi,
16 = Renko,
17 = Line Break,
18 = Heikin Ashi.

Example

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

Value1 = BarType_ex;

Print a message when the user uses a volume chart":

if BarType_ex = 8 then
  Print("This is a volume chart.");