Returns a numerical value, indicating the resolution units of the data series that the study is applied to.
==== Usage ====
<syntaxhighlight>Bartype|BarType</syntaxhighlight>
<br>The following values are returned for each type of resolution units:
<br>:'''0 – ''' = Ticks (Ticks & Contracts),<br>:'''1 – ''' = Intra-Day (Seconds, Minutes, & Hours),<br>:'''2 – ''' = Days,<br>:'''3 – ''' = Weeks,<br>:'''4 – ''' = Months, Quarters, & Years,<br>:'''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 == Example * 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:
<syntaxhighlight>Value1=BarType;</syntaxhighlight>
[[Category:Data Information/General]]