Dukascopy
 
 
Wiki JStore Search Login

JFOREX-1820 Continue thread after context.pause
 Post subject: JFOREX-1820 Continue thread after context.pause Post rating: 0   New post Posted: Tue 18 May, 2010, 14:15 
User avatar

User rating: 3
Joined: Wed 18 May, 2011, 16:25
Posts: 331
Location: SwitzerlandSwitzerland
Hi,

when calling the tester through the ITesterClient, how can a strategy that got paused by IContext.pause() get started again?

Best, RR.


 
 Post subject: Re: ITesterClient: how to continue thread after context.paus Post rating: 0   New post Posted: Wed 26 May, 2010, 09:00 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Sorry, at the moment it's not possible. We have plan's to implement in a near future.


 
 Post subject: Re: ITesterClient: how to continue thread after context.paus Post rating: 0   New post Posted: Thu 27 May, 2010, 07:33 

User rating: 0
Joined: Fri 07 May, 2010, 02:59
Posts: 61
RR:

I haven't played with this at all yet, but check to see if it's just a matter of the thread sleeping or blocked. If that's all it is, try sending a 'wake up' to that thread. This should generate an InterruptedException (or something similar). Assuming I'm right this should wake the thread up. Then you would just hope their code wraps the blocking call in a try/catch block to handle it.

-Brian


 
 Post subject: Re: JFOREX-1820 Continue thread after context.pause Post rating: 0   New post Posted: Fri 09 Jul, 2010, 08:36 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
IContext.pause will not pause the testing process when strategy started from JForex API


 
 Post subject: Re: JFOREX-1820 Continue thread after context.pause Post rating: 0   New post Posted: Fri 13 Aug, 2010, 10:34 
User avatar

User rating: 3
Joined: Wed 18 May, 2011, 16:25
Posts: 331
Location: SwitzerlandSwitzerland
Dear Support,

the code is still pausing and cannot get resumed when started from JForex API.

Could you please look at this issue again?
Thanks,
RR.


 

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