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?
Isak
Post subject: Re: FILLED->CLOSED transition by SL/TP on state diagrams
Post rating: 0
Posted: Tue 31 May, 2011, 22:48
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
API Support
Post subject: Re: FILLED->CLOSED transition by SL/TP on state diagrams