Gamestudio Links
Zorro Links
Newest Posts
Lapsa's very own thread
by Lapsa. 06/26/24 12:45
Executing Trades on Next Bar Open
by Zheka. 06/20/24 14:26
A simple game ...
by VoroneTZ. 06/18/24 10:50
Face player all the time ...
by bbn1982. 06/18/24 10:25
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 920 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Mino, squik, AemStones, LucasJoshua, Baklazhan
19061 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: 23
V
vicknick Offline OP
Newbie
vicknick  Offline OP
Newbie
V

Joined: Apr 2023
Posts: 23
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: 786
Z
Zheka Offline
User
Zheka  Offline
User
Z

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


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1