Post subject: Problems when running strat on demo account!
Post rating: 0
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
API Support
Post subject: Re: Problems when running strat on demo account!
Post subject: Re: Problems when running strat on demo account!
Post rating: 0
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
API Support
Post subject: Re: Problems when running strat on demo account!