|
Attention! Read the forum rules carefully before posting a topic.
Try to find an answer in Wiki before asking a question. Submit programming questions in this forum only. Off topics are strictly forbidden.
Any topics which do not satisfy these rules will be deleted.
Setting a time frame smaller than the chart's timeframe |
Guest
|
Post subject: Setting a time frame smaller than the chart's timeframe |
Post rating: 0
|
Posted: Thu 24 Mar, 2011, 21:12
|
|
User rating: -
|
I would like my indicator to consider bars of a certain timeframe, independent of what is the time frame of the chart to which it's attached.
I use the setPeriod method on an element of the InputParameterInfo of the indicator, but it only works when the time frame i set is bigger than the one set on the chart. If it is smaller, the calculate method doesn't get called at all. Is there a way to do this?
Thanks in advance and sorry if this question appears twice, but i've sent it yesterday and still can't see it, so I think there has been a problem when I submitted the first post.
|
|
|
|
 |
API Support
|
Post subject: Re: Setting a time frame smaller than the chart's timeframe |
Post rating: 0
|
Posted: Tue 29 Mar, 2011, 07:30
|
|
User rating: ∞
Joined: Fri 31 Aug, 2007, 09:17 Posts: 6139
|
Hi, It's the way indicators work at the moment, if chart's timeframe is bigger than the one used in the indicator, indicator doesn't get calculated.
|
|
|
|
 |
|
Pages: [
1
]
|
|
|
|
|