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.

Error in custom indicator on interval change
 Post subject: Error in custom indicator on interval change Post rating: 0   New post Posted: Fri 03 Jul, 2015, 16:38 
User avatar

User rating: 0
Joined: Fri 03 Jul, 2015, 16:32
Posts: 2
Location: United Kingdom,
Hi,
I have coded a custom indicator, which works as it should in different time-frames. So for example it works well on a 30 minute EURUSD chart and it also work well on a 60 minute EURUSD chart. However, if I change the interval of the chart from 60 to 30 minutes (or vice-versa) while the indicator is still applied, then it throws various null pointer errors. My question is what happens to indicator calculations if the interval of the underlying chart is changed?
a) is the onStart() method applied again?
b) are all the output arrays erased on interval change?

Any suggestions on how to correct this error would be welcome.

Thanks.

Ashish


 
 Post subject: Re: Error in custom indicator on interval change Post rating: 0   New post Posted: Mon 06 Jul, 2015, 08:27 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Please provide the indicator code.


 

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