Partial fills with MT4 in live trading?

Posted By: Sphin

Partial fills with MT4 in live trading? - 07/19/18 17:06

Quote:
In live trading, order filling depends on the broker API. By default, the behavior is the same as in the backtest ("fill-or-kill", i.e. no partial fills). This can be changed with the SET_ORDERTYPE command. Partial fills are allowed for IOC ("immediate-or-cancel") or GTC ("good-till-cancelled") orders.

As far as I can see SET_ORDERTYPE is not supported by the MT4 bridge, does it mean partial fills aren't possible through it?
Posted By: jcl

Re: Partial fills with MT4 in live trading? - 07/20/18 13:14

That depends not on commands, but on the broker. According to experience, MT4 brokers normally do not fill orders partially.
Posted By: Sphin

Re: Partial fills with MT4 in live trading? - 07/20/18 17:46

Does it mean that if the broker supports partial fills trades will be filled partially automatically? I saw there is just a new variable OrderDuration. What is its default? If 0 does it mean the trade is cancled after the first fill? Are the filled lots available through TradeLots?
Posted By: jcl

Re: Partial fills with MT4 in live trading? - 08/03/18 14:49

OrderDuration is only for APIs with limit orders, not for MT4. By default it's 0. I have not heard of partial fills with MT4, so I don't know if they can really happen or not. If they happen, then the fill is available through TradeLots.
© 2024 lite-C Forums