EasyLanguage Reserved Words & Functions

BarType (Reserved Word)

image\trumpet2.gif Disclaimer

Returns a number indicating the interval setting of the price data an analysis technique is applied to.

Remarks

The number returned is based on the data interval of the price data. BarType will return:

0 = TickBar
1 = Minute
2 = Daily
3 = Weekly
4 = Monthly
5 = Point & Figure
6 = (reserved)
7 = (reserved)
8 = Kagi
9 = Kase
10 = Line Break
11 = Momentum
12 = Range
13 = Renko
14 = Second
15 = Renko Custom
16 = Renko Mean

Examples

BarType returns 0 when applied to price data based on tick interval.

BarType returns 2 when applied to price data based on daily interval.

Additional Example

To assure that a statement is executed only on a daily chart we can write:

If BarType = 2 then Sell next bar at market;