how to get the time frame value  [SOLVED]

Questions about MultiCharts and user contributed studies.
kernel
Posts: 91
Joined: 19 Feb 2013
Has thanked: 21 times
Been thanked: 4 times

how to get the time frame value

Postby kernel » 08 Mar 2015

hi,

I use barinterval to get the time frame value. However, barinterval can only be applied to intraday charts, not daily chart. When applied to a daily chart, it returns 1, the same as applied to a 1m chart. How can I tell a daily chart from a 1m chart then? any other functions to get the time frame value it is applied to? thanks.

-k

User avatar
JoshM
Posts: 2099
Joined: 20 May 2011
Location: The Netherlands
Has thanked: 1526 times
Been thanked: 1504 times
Contact:

Re: how to get the time frame value  [SOLVED]

Postby JoshM » 08 Mar 2015

I use barinterval to get the time frame value. However, barinterval can only be applied to intraday charts, not daily chart. When applied to a daily chart, it returns 1, the same as applied to a 1m chart. How can I tell a daily chart from a 1m chart then? any other functions to get the time frame value it is applied to? thanks.
BarType_ex returns a number indicating the resolution of the chart (4 for daily charts and 2 for minute charts, for example).


Return to “MultiCharts”