Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 03/28/26 14:01
TMFs on options in live trading
by Spirit. 03/26/26 19:52
TDAmeritrade plugin with new Schwab accountt?
by AndrewAMD. 03/24/26 17:11
Black Book, 4th edition
by jcl. 03/17/26 09:28
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (Grant, 1 invisible), 3,483 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
mredit, vestriaa, Lukudo, mldenoiser, the1
19204 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Partial fills with MT4 in live trading? #473528
07/19/18 17:06
07/19/18 17:06
Joined: Dec 2013
Posts: 568
Fuerth, DE
Sphin Offline OP
User
Sphin  Offline OP
User

Joined: Dec 2013
Posts: 568
Fuerth, DE
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?

Re: Partial fills with MT4 in live trading? [Re: Sphin] #473534
07/20/18 13:14
07/20/18 13:14
Joined: Jul 2000
Posts: 28,090
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,090
Frankfurt
That depends not on commands, but on the broker. According to experience, MT4 brokers normally do not fill orders partially.

Re: Partial fills with MT4 in live trading? [Re: jcl] #473543
07/20/18 17:46
07/20/18 17:46
Joined: Dec 2013
Posts: 568
Fuerth, DE
Sphin Offline OP
User
Sphin  Offline OP
User

Joined: Dec 2013
Posts: 568
Fuerth, DE
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?

Re: Partial fills with MT4 in live trading? [Re: Sphin] #473672
08/03/18 14:49
08/03/18 14:49
Joined: Jul 2000
Posts: 28,090
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,090
Frankfurt
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.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1