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.

Problem with testing multiple strategies
 Post subject: Problem with testing multiple strategies Post rating: 0   New post Posted: Thu 02 Sep, 2010, 12:14 

User rating: -
I am trying to backtest multiple strategies. My understanding is just as I am able to run multiple strategies during trading, I should be able to backtest multiple strategies. However, I have tried the following two over loaded methods.

1) client.startStrategy(strategy);

This method doesn't work. The first strategy does start but the second some how gets into an infinite loop or a dead lock. I don't know.

2. client.startStrategy(strategy, new LoadingProgressListener() {

@Override
public void dataLoaded(long startTime, long endTime, long currentTime, String information) {
LOGGER.info(information);
}

@Override
public void loadingFinished(boolean allDataLoaded, long startTime, long endTime, long currentTime) {
}

@Override
public boolean stopJob() {
return false;
}
});

This method throws an exception that a strategy is already started.

Could you please look into this ?

Thanks


 
 Post subject: Re: Problem with testing multiple strategies Post rating: 0   New post Posted: Mon 13 Sep, 2010, 08:43 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hello,
please try to renew your JClientLibaray version.


 

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