Gamestudio Links
Zorro Links
Newest Posts
Purchase A8 full licence version
by jcl. 09/29/26 09:37
A3 projects
by Yopachi. 09/28/26 17:04
Parent/child object
by rayp. 09/27/26 14:43
Bug in train mode, or it seem to me
by mistery. 09/24/26 17:34
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (AndrewAMD, 1 invisible), 4,602 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
KelleyAbbey, Yopachi, Knull, Opus, Jubilee
19243 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