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
|