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 get strategy processID?
 Post subject: how to get strategy processID? Post rating: 0   New post Posted: Tue 07 Feb, 2017, 04:18 
User avatar

User rating: 0
Joined: Thu 22 Dec, 2016, 02:12
Posts: 10
Dear API support,
I want to close a strategy after finishing a strategy. and stopStrategy() needs processID as parameter.
so how can I get the processID? I can't find a way neither in WIKI or this forum.
thanks!


 
 Post subject: Re: how to get strategy processID? Post rating: 0   New post Posted: Wed 08 Feb, 2017, 16:08 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
It is possible to save strategy id when the strategy is being started.
long strategyID = IClient.startStrategy(new Strategy());


 
 Post subject: Re: how to get strategy processID? Post rating: 0   New post Posted: Thu 09 Feb, 2017, 11:53 
User avatar

User rating: 0
Joined: Thu 22 Dec, 2016, 02:12
Posts: 10
thanks for kind reply.
I already use context.stop()to stop strategy. hope same result with your code-:)


 
 Post subject: Re: how to get strategy processID? Post rating: 0   New post Posted: Thu 09 Feb, 2017, 11:53 
User avatar

User rating: 0
Joined: Thu 22 Dec, 2016, 02:12
Posts: 10
thanks for kind reply.
I already use context.stop()to stop strategy. hope same result with your code-:)


 

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