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.

FILLED->CLOSED transition by SL/TP on state diagrams
 Post subject: FILLED->CLOSED transition by SL/TP on state diagrams Post rating: 0   New post Posted: Fri 27 May, 2011, 20:33 
User avatar

User rating: 6
Joined: Thu 19 May, 2011, 11:14
Posts: 235
Location: South Africa,
Refer to these two state diagrams in the wiki:
https://www.dukascopy.com/wiki/images/8/ ... iagram.pdf
https://www.dukascopy.com/wiki/images/5/ ... iagram.pdf

According to both diagrams, the FILLED->CLOSED transition can only go via IOrder.close().
What happens when an order hits SL or TP, rather than being closed by the client? :?


 
 Post subject: Re: FILLED->CLOSED transition by SL/TP on state diagrams Post rating: 0   New post Posted: Tue 31 May, 2011, 22:48 
User avatar

User rating: 6
Joined: Thu 19 May, 2011, 11:14
Posts: 235
Location: South Africa,
Well, I suppose both diagrams are just missing an arrow between the following two nodes:
from onMessage ORDER_FILL_OK
to IOrder.State.CLOSED


 
 Post subject: Re: FILLED->CLOSED transition by SL/TP on state diagrams Post rating: 0   New post Posted: Wed 01 Jun, 2011, 11:55 
User avatar

User rating:
Joined: Fri 31 Aug, 2007, 09:17
Posts: 6139
Isak wrote:
Well, I suppose both diagrams are just missing an arrow between the following two nodes:
from onMessage ORDER_FILL_OK
to IOrder.State.CLOSED
That is correct, the diagrams are going to be updated.


 

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