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 automatically shut down after the execution of strategy
 Post subject: How to automatically shut down after the execution of strategy Post rating: 0   New post Posted: Fri 20 Sep, 2013, 17:00 

User rating: 0
Joined: Thu 29 Aug, 2013, 01:01
Posts: 21
Location: ChinaChina
Excuse me:
Strategies for the implementation of open policy panel, how to make the strategy, automatically after the completion of the end, not the end point strategy panel button?


 
 Post subject: Re: How to automatically shut down after the execution of strategy Post rating: 1   New post Posted: Fri 20 Sep, 2013, 17:34 
User avatar

User rating: 94
Joined: Mon 06 Feb, 2012, 12:22
Posts: 357
Location: Portugal, Castelo Branco
Hi zhaoju:

Use

context.stop();



after the logic part of strategy ends, usualy outside onStart() and assuming you have context globaly assigned.

Hope that helps

Trade well

JL


 

Jump to:  

cron
  © 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