Dukascopy
 
 
Wiki JStore Search Login

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

    Try to find an answer in Wiki before asking a question.
    Submit programming questions in this forum only.
    Off topics are strictly forbidden.

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

How to disconnect?
 Post subject: How to disconnect? Post rating: 0   New post Posted: Wed 28 Oct, 2009, 10:36 

User rating: 0
Joined: Wed 28 Oct, 2009, 10:25
Posts: 13
Hello,

I saw in the examples that the program exists with "System.exit(0)".

Isn't there a way to gracefully disconnect and shutdown?
It seams that the JForex threads are not declared as deamon and it forces me to run "System.exit(0)".

Thanks.


 
 Post subject: Re: How to disconnect? Post rating: 0   New post Posted: Wed 28 Oct, 2009, 13:17 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hi,
to stop strategy immediately use method from IContext interface stop().
There isn't any alternatives to "System.exit(0)", although you could put on screen some dialog window where you offer exit from system.


 

Jump to:  

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