BarType ex: Difference between revisions
From MultiCharts
No edit summary |
(→Usage) |
||
(One intermediate revision by one other user not shown) | |||
Line 24: | Line 24: | ||
:'''14''' = Point & Figure, | :'''14''' = Point & Figure, | ||
:'''15''' = Kagi, | :'''15''' = Kagi, | ||
:'''16''' = | :'''16''' = Line Break, | ||
:'''17''' = | :'''17''' = Renko, | ||
:'''18''' = Heikin Ashi. | :'''18''' = Heikin Ashi. | ||
:'''1000+N''' = Custom Resolution, where N = BarType_ex. | |||
== Example == | == Example == |
Latest revision as of 14:34, 4 August 2017
BarType_ex indicates the resolution units of a chart more specifically than BarType does.
BarType_ex returns a numerical value, indicating the resolution units of the data series that the study is applied to.
Usage
BarType_ex
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 = Line Break,
- 17 = Renko,
- 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:
Value1 = BarType_ex;
Print a message when the user uses a volume chart":
if BarType_ex = 8 then
Print("This is a volume chart.");