Gamestudio Links
Zorro Links
Newest Posts
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
Data from CSV not parsed correctly
by EternallyCurious. 04/20/24 21:39
M1 Oversampling
by 11honza11. 04/20/24 20:57
Scripts not found
by juergen_wue. 04/20/24 18:51
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
folder management functions
by VoroneTZ. 04/17/24 06:52
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (rki), 405 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 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,982
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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

Chief Engineer
jcl  Offline

Chief Engineer

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