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
how to get the time frame value [SOLVED]
- JoshM
- Posts: 2195
- Joined: 20 May 2011
- Location: The Netherlands
- Has thanked: 1544 times
- Been thanked: 1565 times
- Contact:
Re: how to get the time frame value [SOLVED]
BarType_ex returns a number indicating the resolution of the chart (4 for daily charts and 2 for minute charts, for example).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.