Gamestudio Links
Zorro Links
Newest Posts
Zorro version 3.0 prerelease!
by jcl. 02/12/26 14:05
MarginCost discrepancy?
by jcl. 02/12/26 14:02
Hedge on FXCM, 4 or 5?
by qin. 02/11/26 14:12
CMC MT4 CFD vs FX Active - what's better?
by mayarik. 02/11/26 11:00
print a "still alive" log
by qin. 02/10/26 12:16
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (TipmyPip), 7,786 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
ApprenticeInMuc, PatrickH90, USER0328, Sfrdragon, mayarik
19198 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Executing Trades on Next Bar Open #488272
06/13/24 08:51
06/13/24 08:51
Joined: Apr 2023
Posts: 61
V
vicknick Offline OP
Junior Member
vicknick  Offline OP
Junior Member
V

Joined: Apr 2023
Posts: 61
So far with the run() function, the calculation and trades are done on bar close. However, the market would have been closed at this point, and can only be traded when it opens again.

Is there a way to run the calculation as usual on bar close, but make the trades on next bar open? So far I have found 'LifeTime' and 'EntryTime' parameter, but I don't think they solve this problem.

Re: Executing Trades on Next Bar Open [Re: vicknick] #488282
06/20/24 14:26
06/20/24 14:26
Joined: Jul 2017
Posts: 787
Z
Zheka Offline
User
Zheka  Offline
User
Z

Joined: Jul 2017
Posts: 787
Have a look at Fill mode 3.


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1