Partially Filled

Created at 12 May 2017, 10:09
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!
FU

fushine0718

Joined 14.04.2016

Partially Filled
12 May 2017, 10:09


I use  "ExecuteMarketOrder(tradeType, Symbol, volume, Label, 0, 0, 0, comment); " to order in my robot.  The order value sometimes will be less than I request.

I found it tend to be "Partially Filled" if the value is greater than 10k. Can anyone explain why it happened and how I can fix it?

Should I add some judging codes or use another method to execute orders?


@fushine0718
Replies

Spotware
18 Jul 2017, 15:36

Dear fushine0718,

You are executing a market order with a market range of 0. This means that your market order will be executed as a limit order on the spot price. If there is not enough market depth to cover your order then your order will be partially filled. If you want your market order to be completely filled, you should remove the market range.

Best Regards,

cTrader Team


@Spotware