Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, degenerate_762, ozgur), 1,311 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
New TradeMode TR_POOLDELAY #477938
08/16/19 15:03
08/16/19 15:03
Joined: Feb 2017
Posts: 1,729
Chicago
AndrewAMD Online OP
Serious User
AndrewAMD  Online OP
Serious User

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

Currently, if a virtual trade is entered in tick() or a TMF, the pool trade occurs instantly.

It would be helpful if this can be overridden such that all pool trades take place at the end of all pending tick() and TMF calls.

What happens now:
tick() is called, virtual trade is opened/closed, pool trade executed immediately.
TMFs are called, various virtual trades are closed, pool trade executed immediately.

New feature:
setf(TradeMode, TR_POOLDELAY)
tick() is called, virtual trade is opened/closed. (nothing happens to the pool yet.)
TMFs are called, various virtual trades are closed. (nothing happens to the pool yet.)
No tick or TMF calls remain. Now adjust the pool. (Alternatively, wait for an explicit call to a new function tradePool().)

Thanks,
Andrew

Re: New TradeMode TR_POOLDELAY [Re: AndrewAMD] #477949
08/17/19 21:46
08/17/19 21:46
Joined: Apr 2008
Posts: 586
Austria
Petra Offline
Support
Petra  Offline
Support

Joined: Apr 2008
Posts: 586
Austria
To enter a pool trade not in tick() but later, I would simply sum up the lots in tick() and then enter later the trade.


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