Dukascopy
 
 
Wiki JStore Search Login

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
 Post subject: Setting a time frame smaller than the chart's timeframe Post rating: 0   New post 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.


 
 Post subject: Re: Setting a time frame smaller than the chart's timeframe Post rating: 0   New post Posted: Tue 29 Mar, 2011, 07:30 
User avatar

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.


 

Jump to:  

cron
  © 1998-2025 Dukascopy® Bank SA
On-line Currency forex trading with Swiss Forex Broker - ECN Forex Brokerage,
Managed Forex Accounts, introducing forex brokers, Currency Forex Data Feed and News
Currency Forex Trading Platform provided on-line by Dukascopy.com