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.

history.getBar - problem 12.08.2012
 Post subject: history.getBar - problem 12.08.2012 Post rating: 0   New post Posted: Wed 29 Aug, 2012, 07:11 

User rating: 1
Joined: Mon 27 Feb, 2012, 22:49
Posts: 119
Location: Czech Republic,
I use a lot of bars from history for my strategy. Several days I have problem if I need bars 5 min. and 15 min. from 12.08.2012 for several pairs - EUR/USD, GBP/CHF, USD/CHF and USD/DKK. For all this day and those pairs I receive exception „Could not load bar ...“. On live account and on demo too. I had to adapt my strategy.

Attached strategy shows this problem (only first 50 problem bars). Could you repair it?

Thanks


Attachments:
CheckGetBar.java [8.67 KiB]
Downloaded 280 times
DISCLAIMER: Dukascopy Bank SA's waiver of responsability - Documents, data or information available on this webpage may be posted by third parties without Dukascopy Bank SA being obliged to make any control on their content. Anyone accessing this webpage and downloading or otherwise making use of any document, data or information found on this webpage shall do it on his/her own risks without any recourse against Dukascopy Bank SA in relation thereto or for any consequences arising to him/her or any third party from the use and/or reliance on any document, data or information found on this webpage.
 
 Post subject: Re: history.getBar - problem 12.08.2012 Post rating: 0   New post Posted: Wed 29 Aug, 2012, 13:39 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
We could not replicate this, also for instrument subscription consider using the synchronous method:
        context.setSubscribedInstruments( instruments, true );  


 
 Post subject: Re: history.getBar - problem 12.08.2012 Post rating: 0   New post Posted: Wed 29 Aug, 2012, 19:55 

User rating: 1
Joined: Mon 27 Feb, 2012, 22:49
Posts: 119
Location: Czech Republic,
This is not about instrument subscription. I ask for bars for long period (hundred day), but problem is only for one day.
I did this change of subscription and it didn't help.


 
 Post subject: Re: history.getBar - problem 12.08.2012 Post rating: 0   New post Posted: Tue 04 Sep, 2012, 13:45 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Could you please check if deleting cache solves the problem?


 
 Post subject: Re: history.getBar - problem 12.08.2012 Post rating: 0   New post Posted: Tue 25 Sep, 2012, 18:15 

User rating: 1
Joined: Mon 27 Feb, 2012, 22:49
Posts: 119
Location: Czech Republic,
How exactly should I delete cache?


 

Jump to:  

  © 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