Events raised on partial fill?

Created at 28 Apr 2016, 01:17
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
ST

stech22

Joined 14.03.2016

Events raised on partial fill?
28 Apr 2016, 01:17


(I posted this question in the cBots API Help forum but got no response.  Surely someone knows the answer to this?)

If a cBot places a limit order to enter a position and the order is only partially filled, is the Positions.Opened event fired?

Put another way, if it takes 3 partial fills for the order to be completely filled, how many times is the Positions.Opened event fired?  Three times or just once?

Similarly, if a take profit has been specified for an open position, is the Positions.Closed event fired for each partial close or only when the entire position has been closed?

Or are partial fills not possible unless one is explicitly requiested via the Robot.ClosePosition(position, volume) method?

(In my demo testing to date I haven't yet detected a partial fill.)

Many thanks ...

 


@stech22