×

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

Changes

Jump to navigation Jump to search

BarType ex

349 bytes added, 14:34, 4 August 2017
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]] </syntaxhighlight>
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''' = Line Break,:'''17 - Line Break''' = Renko,:'''18 - ''' = Heikin Ashi.  ==:'''1000+N''' =Custom Resolution, where N = Example ====Assign a value, indicating the resolution units of the data series that the study is applied to, to Value1 variable: BarType_ex.
<syntaxhighlight>== Example ==Assign a value, indicating the resolution units of the data series that the study is applied to, to the Value1=BarType_ex;</syntaxhighlight>variable:
<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]]

Navigation menu