Gamestudio Links
Zorro Links
Newest Posts
MT5 bridge not working on MT5 v. 5 build 4160
by EternallyCurious. 04/25/24 20:49
Data from CSV not parsed correctly
by EternallyCurious. 04/25/24 10:20
Trading Journey
by howardR. 04/24/24 20:04
M1 Oversampling
by Petra. 04/24/24 10:34
Zorro FIX plugin - Experimental
by flink. 04/21/24 07:12
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
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
4 registered members (EternallyCurious, AndrewAMD, TipmyPip, Quad), 889 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mega_Rod, EternallyCurious, howardR, 11honza11, ccorrea
19048 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,725
Chicago
AndrewAMD Online OP
Serious User
AndrewAMD  Online OP
Serious User

Joined: Feb 2017
Posts: 1,725
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