Gamestudio Links
Zorro Links
Newest Posts
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
Release 2.68 replacement of the .par format
by Martin_HH. 09/23/25 20:48
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
1 registered members (TipmyPip), 17,605 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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: 60
V
vicknick Offline OP
Junior Member
vicknick  Offline OP
Junior Member
V

Joined: Apr 2023
Posts: 60
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