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.

Problems when running strat on demo account!
 Post subject: Problems when running strat on demo account! Post rating: 0   New post Posted: Mon 06 Feb, 2012, 21:49 

User rating: 0
Joined: Sun 22 May, 2011, 23:05
Posts: 12
Location: BR
Hello support,
I've been trying to run my strat on Demo account but an error saying this appears:
2012-02-06 20:32:42 com.dukascopy.charts.data.datacache.DataCacheException: Cannot decode 7zip compressed file [C:\Users\Marc\Local Settings\JForex\.cache\EURGBP\2011\11\BID_candles_hour_1.bi5] @ jforex.EMAstrat.onTick(EMAstrat.java:245)
It also happens to appear with other currency on the path that is shown on the error msg (EUR/JPY, EUR/CHF and others). But my strat is configured to run only on EUR/USD.
Plz help me!!!
And if I run it on a real account istead of a Demo will it have the same issue?

Thanks in advance
Marcelo Uehara


 
 Post subject: Re: Problems when running strat on demo account! Post rating: 0   New post Posted: Tue 07 Feb, 2012, 09:57 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
These are temporary datacache server problems.


 
 Post subject: Re: Problems when running strat on demo account! Post rating: 0   New post Posted: Wed 08 Feb, 2012, 18:08 

User rating: 0
Joined: Sun 22 May, 2011, 23:05
Posts: 12
Location: BR
Hi,
I could round this trouble by realocating the instrument check line right in the begining of the onTick method. So If anyone has an similar issue try to use the instrument condition before anything dealing with ticks or bars on any instrument (on the begining of the method should be fine on most cases).
But there is an observation. I have the data of the instrument that I'm running my strat....So you should get the data of the instrument for the period you need (I think should follow what the indicator needs - if the longest indicator calculation is of 24 days from current candle you should get data from around one month before till today).
Thanks you all and hope it was helpfull!!!
Marcelo


 
 Post subject: Re: Problems when running strat on demo account! Post rating: 0   New post Posted: Thu 09 Feb, 2012, 09:08 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
To add, if you need particular historical data in your cache, consider using asynchronous history loading methods IHistory.read*, see example for bars:
https://www.dukascopy.com/wiki/#History_ ... us_methods


 

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