Gamestudio Links
Zorro Links
Newest Posts
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Help with plotting multiple ZigZag
by M_D. 04/26/24 20:03
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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (1 invisible), 509 guests, and 0 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
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,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

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