×

Sign up and get MultiCharts free

Use its powerful simulation mode with data included out of the box. Just fill out the form and start honing your trading skills with a few clicks.

Changes - MultiCharts
Open main menu

Changes

BarType ex

194 bytes added, 11:36, 19 February 2012
no edit summary
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,<br>:'''17 - ''' = Line Break,<br>:'''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:  <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]]