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.

Stop/Exit a strategy from inside the code
 Post subject: Stop/Exit a strategy from inside the code Post rating: 0   New post Posted: Wed 07 Sep, 2016, 18:58 
User avatar

User rating: 0
Joined: Tue 06 Sep, 2016, 11:04
Posts: 20
Location: United Kingdom,
Hello,

What code do I use in order to stop/exit a running strategy?

The equivalent in mql4 is: ExpertRemove();

Thanks


 
The Best Answer  Post subject: Re: Stop/Exit a strategy from inside the code Post rating: 1   New post Posted: Thu 08 Sep, 2016, 10:20 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
that can be done by the following
IContext context;
context.stop();


 
 Post subject: Re: Stop/Exit a strategy from inside the code Post rating: 0   New post Posted: Thu 08 Sep, 2016, 13:41 
User avatar

User rating: 0
Joined: Tue 06 Sep, 2016, 11:04
Posts: 20
Location: United Kingdom,
Thanks!


 

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