Dukascopy Support Board
http://www.dukascopy.com/swiss/english/forex/jforex/forum/

ITesterClient startStrategy inside loop
http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=16&t=50619
Page 1 of 1

Author:  ipsec [ Tue 07 Jan, 2014, 01:13 ]
Post subject:  ITesterClient startStrategy inside loop

I have 4096 strategies to run.
I have in my Main.java :

for (Config config : configs)
    testclient.startStrategy(new MyStrategy(config));



I have 711 Threads and my system is slow;

# ps -eLf | grep -i java | wc -l
711


How to run one (or a specific number) strategy by time?


Thanks

Author:  API Support [ Tue 07 Jan, 2014, 08:29 ]
Post subject:  Re: ITesterClient startStrategy inside loop

ITesterClient in fact runs one strategy at a time (even if you start them from a for cycle) - you can't back-test two strategies in parallel from the same process in JForex-SDK.

  Page 1 of 1