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.

Why tester always download every tick data?
 Post subject: Why tester always download every tick data? Post rating: 0   New post Posted: Thu 27 Jan, 2011, 07:45 

User rating: 0
Joined: Thu 27 Jan, 2011, 07:41
Posts: 1
Hello, I am testing a strategy which use only H4 chart, the tick on open only.
however, my code always download ticks data, it takes so a long time when i want to test it from 2005 to 2010.
Is there any way to get it faster (so i dont need to download all the tick data)?

thanks


        Calendar fromdate = new GregorianCalendar();
        Calendar todate = new GregorianCalendar();
        fromdate.set(2010, 07, 01);
        todate.set(2010, 11, 31);
        client.setDataInterval(Period.FOUR_HOURS, OfferSide.BID, ITesterClient.InterpolationMethod.OPEN_TICK, fromdate.getTimeInMillis(), todate.getTimeInMillis());
        client.setSubscribedInstruments(instruments);
        //setting initial deposit
        client.setInitialDeposit(Instrument.EURUSD.getSecondaryCurrency(), 5000);
        //load data
        LOGGER.info("Downloading data");
       
        Future<?> future = client.downloadData(null);
       
        //wait for downloading to complete
        future.get();


 
 Post subject: Re: Why tester always download every tick data? Post rating: 0   New post Posted: Fri 10 Jun, 2011, 11:53 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
data get saved on your local machine, so you avoid dowload just by commenting out the correspoding lines, that is:
//Future<?> future = client.downloadData(null);
//wait for downloading to complete
//future.get();


 
 Post subject: Re: Why tester always download every tick data? Post rating: 0   New post Posted: Thu 23 Jun, 2011, 06:32 

User rating: 0
Joined: Wed 18 May, 2011, 08:40
Posts: 43
Location: RU
Support wrote:
data get saved on your local machine


Where is it saved?
According to the JAVADOC for downloadData() it downloads into the local cache. Is it possible to save it to the file and then read from it?


 
 Post subject: Re: Why tester always download every tick data? Post rating: 0   New post Posted: Thu 23 Jun, 2011, 07:26 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Quote:
Where is it saved?
See JForex client Tools -> Preferences -> Advanced tab.
Quote:
According to the JAVADOC for downloadData() it downloads into the local cache. Is it possible to save it to the file and then read from it?

You can find historical data here: https://www.dukascopy.com/swiss/english/ ... istorical/


 

Jump to:  

  © 1998-2026 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