Gamestudio Links
Zorro Links
Newest Posts
Data from CSV not parsed correctly
by EternallyCurious. 04/18/24 10:45
StartWeek not working as it should
by Zheka. 04/18/24 10:11
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (ozgur, TipmyPip), 722 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Enter FOK orders simultaneously #481945
11/24/20 14:33
11/24/20 14:33
Joined: Feb 2017
Posts: 1,725
Chicago
AndrewAMD Offline OP
Serious User
AndrewAMD  Offline OP
Serious User

Joined: Feb 2017
Posts: 1,725
Chicago
jcl,

Currently, for FOK orders, the BrokerBuy2 API requires that the plugin returns the final fill status. But this means that the plugin blocks for the result on order placement. This wastes precious time that could be use for placing more orders (such as in a large portfolio) or making new calculations.

I don't see why this blocking behavior is necessary. Why not allow FOK orders to be placed simultaneously without blocking? Either BrokerTrade() or callbacks (or both) should be a fine way to give Zorro an order fill update. Something to answer the question, "was this order filled or killed?"

Thanks,
Andrew

Re: Enter FOK orders simultaneously [Re: AndrewAMD] #481948
11/25/20 10:55
11/25/20 10:55
Joined: Jul 2000
Posts: 27,978
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,978
Frankfurt
That's already possible on the Zorro side, but AFAIK not yet supported by plugins.

In stead of 2 simultaneous FOK orders, send 2 AON+GTC orders, wait some predefined time, then check the fill with BrokerTrade and send a DO_CANCEL command when not filled.

This requires from the plugin support of GTC, DO_CANCEL, and BrokerTrade.


Moderated by  Petra 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1