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.

setStopLossPrice() - order.getState while processing
 Post subject: setStopLossPrice() - order.getState while processing Post rating: 0   New post Posted: Fri 25 Feb, 2011, 18:48 

User rating: 0
Joined: Sat 01 Jan, 2011, 11:29
Posts: 6
When calling setStopLossPrice() which IOrder.State is assigned whilst the stop is being actioned by the system and what state is assigned on success?

I typically call e.g. order.waitForUpdate(...) in a loop until either I decide to time out or I get a successful state assigned to the order.


 
 Post subject: Re: setStopLossPrice() - order.getState while processing Post rating: 0   New post Posted: Mon 28 Feb, 2011, 09:12 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Hi,
An order state not changed while the stop price is being assigned to the order. Restrictions for setting stop loss are:
1. Order must be in the Filled or Opened states.
2. You can not set stop loss price more than once in a second.


 

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