An extended version BarType_ex indicates the resolution units of a chart more specifically than [[BarType.]] Indicates the resolution units more specificallydoes.
Returns BarType_ex returns a numerical value, indicating the resolution units of the data series that the study is applied to.
==== Usage ====
<syntaxhighlight>Bartype_ex|BarType_ex</syntaxhighlight>
<br>The following values are returned for each type of resolution units:
<br>:'''1 – ''' = Ticks,<br>:'''2 – ''' = Minutes,<br>:'''3 – ''' = Hours,<br>:'''4 – ''' = Days,<br>:'''5 – ''' = Weeks,<br>:'''6 – ''' = Months,<br>:'''7 – ''' = Years,<br>:'''8 – ''' = Volume,<br>:'''9 – ''' = Seconds,<br>:'''10 – ''' = Quarters,<br>:'''11 – ''' = Points,<br>:'''12 – ''' = Change,<br>:'''13 – ''' = Points (Original),<br>:'''14 - ''' = Point & Figure,<br>:'''15 - ''' = Kagi,<br>:'''16 - Renko''' = Line Break,<br>:'''17 - Line Break''' = Renko,<br>:'''18 - ''' = Heikin Ashi.:'''1000+N''' = Custom Resolution, where N = BarType_ex.
==== Example ====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]]