BarType: Difference between revisions
From MultiCharts
→Usage
(→Usage) |
(→Usage) |
||
(4 intermediate revisions by 4 users not shown) | |||
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 == | |||
<syntaxhighlight>BarType</syntaxhighlight> | |||
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, | |||
:'''6''' = (Reserved for future use), | |||
:'''7''' = (Reserved for future use), | |||
:'''8''' = Kagi, | |||
:'''9''' = (Reserved for future use), | |||
:'''10''' = Line Break, | |||
:'''11''' = (Reserved for future use), | |||
:'''12''' = (Reserved for future use), | |||
:'''13''' = Renko, | |||
:'''256''' = Heikin Ashi. | |||
:'''1000+N''' = Custom Resolution, where N = BarType. | |||
==== | == Notes == | ||
* See [[BarType_ex]] for more specific indication of which chart type the code is applied to. | |||
== 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]] |