Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
M1 Oversampling
by jcl. 04/26/24 11:12
Why Zorro supports up to 72 cores?
by jcl. 04/26/24 11:09
Eigenwerbung
by jcl. 04/26/24 11:08
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Trading Journey
by howardR. 04/24/24 20:04
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Scripts not found
by juergen_wue. 04/20/24 18:51
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Ayumi, AndrewAMD), 822 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
wandaluciaia, Mega_Rod, EternallyCurious, howardR, 11honza11
19049 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: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
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: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
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