| Dukascopy Support Board http://www.dukascopy.com/swiss/english/forex/jforex/forum/ |
|
| testerClient not finish http://www.dukascopy.com/swiss/english/forex/jforex/forum/viewtopic.php?f=77&t=50079 |
Page 1 of 1 |
| Author: | ipsec [ Tue 24 Sep, 2013, 02:20 ] |
| Post subject: | testerClient not finish |
Why my testerClient strategy don't finish. I have 64 tests to run and all still "waiting" after onStop(). How to fix? |
|
| Author: | tcsabina [ Tue 24 Sep, 2013, 12:11 ] |
| Post subject: | Re: testerClient not finish |
Hi, I think it is nearly impossible to say without any further information, code sample, or anything that helps. Show us the strategy that ' hangs'. Explain the running conditions, etc, etc. Edit: also you have better chance to get help here. But only, if you have provided more information... |
|
| Author: | ipsec [ Tue 24 Sep, 2013, 13:52 ] |
| Post subject: | Re: testerClient not finish |
I have 64 strategies to run, so I need iterate over than: for (Configuration configuration: configurations) On my tests purpose I try with: new runMyStrategy(configurations.get(0)) Here runMyStrategy is my all ITesterClient process (connect, set strategy/instrument, run strategy and desirable exit). and I got System.exit(0). On my strategy I have: testClient.setSystemListener(new ISystemListener() {I don't want to exit of all, I need to stop only this strategy. If I comment this System.exit(0), my strategy enter onStop, process it and don't exit, still "running". I try put testClient.stopStrategy(strategyId) on OnStop, but it always return null to strategyId (i guess it already done). strategyId is the long strategyId = testClient.startStrategy(...); |
|
| Author: | tcsabina [ Tue 24 Sep, 2013, 14:11 ] |
| Post subject: | Re: testerClient not finish |
Hi, Take a look on this topic, where I tried to achieve something similar. I am not exactly sure if you are after something similar, but maybe... |
|
| Page 1 of 1 |