Dukascopy
 
 
Wiki JStore Search Login

Attention! Read the forum rules carefully before posting a topic.

    Submit JForex API bug reports in this forum only.
    Submit Converter issues in Converter Issues.
    Off topics are strictly forbidden.

Any topics which do not satisfy these rules will be deleted.

ITesterClient startStrategy inside loop
 Post subject: ITesterClient startStrategy inside loop Post rating: 0   New post Posted: Tue 07 Jan, 2014, 01:13 
User avatar

User rating: 0
Joined: Wed 03 Jul, 2013, 14:08
Posts: 16
Location: BrazilBrazil
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


 
 Post subject: Re: ITesterClient startStrategy inside loop Post rating: 0   New post Posted: Tue 07 Jan, 2014, 08:29 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
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.


 

Jump to:  

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