Bartype function: Anyway to discriminate the scale unit

Questions about MultiCharts and user contributed studies.
arjfca
Posts: 1292
Joined: 23 Nov 2010
Has thanked: 725 times
Been thanked: 223 times

Bartype function: Anyway to discriminate the scale unit

Postby arjfca » 08 Jul 2012

Hello

The function Bartype will return a value representing the type of scale in use

0 = TickBar
1 = Intraday
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

My problem is When I got an Intraday chart, I will get a return value of 1 for any intraday charts like: Second chart, Minute charts, Hours charts.

Anyway to discriminate the Intraday chart scale in use

The whole purpose of this is to create a function that will return a string representing the scale in use. This string to be send to Excel as a filter for data computation

Martin

User avatar
TJ
Posts: 7740
Joined: 29 Aug 2006
Location: Global Citizen
Has thanked: 1033 times
Been thanked: 2221 times

Re: Bartype function: Anyway to discriminate the scale unit

Postby TJ » 08 Jul 2012

Hello

The function Bartype will return a value representing the type of scale in use

0 = TickBar
1 = Intraday
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

My problem is When I got an Intraday chart, I will get a return value of 1 for any intraday charts like: Second chart, Minute charts, Hours charts.

Anyway to discriminate the Intraday chart scale in use

The whole purpose of this is to create a function that will return a string representing the scale in use. This string to be send to Excel as a filter for data computation

Martin
look up

BarType_ex

arjfca
Posts: 1292
Joined: 23 Nov 2010
Has thanked: 725 times
Been thanked: 223 times

Re: Bartype function: Anyway to discriminate the scale unit

Postby arjfca » 08 Jul 2012

TJ, another Montreal Sandwich for you

Martin :)


Return to “MultiCharts”