Gamestudio Links
Zorro Links
Newest Posts
How to Change Multiplier
by vicknick. 06/02/23 03:27
How to buy tomorrow at open?
by vicknick. 06/02/23 03:19
Adding Position to Current Trade
by vicknick. 06/02/23 03:09
Unable to change multiplier of contract
by vicknick. 05/30/23 06:56
Wrong Definition of Sharpe Ratio in Zorro?
by vicknick. 05/29/23 06:32
Backtest strategy on bitcoin/crypto
by JamesHH. 05/26/23 04:36
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (vicknick, 7th_zorro, Quad), 1,030 guests, and 10 spiders.
Key: Admin, Global Mod, Mod
Newest Members
BInnacle, androsa, XquicksnowX, danishinvest, Trail
18942 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
How to buy tomorrow at open? #487534
Yesterday at 19:58
Yesterday at 19:58
Joined: Jun 2023
Posts: 1
F
frutza Offline OP
Guest
frutza  Offline OP
Guest
F

Joined: Jun 2023
Posts: 1
During backtesting, it seems that the enterLong() or enterShort() functions enter trades at the CLOSE of the next day (after a buy or sell signal was generated today by whatever strategy is used).
How can I enter a trade at the OPEN of the next day?

Thank you in advance! Any answer and/or example is highly appreciated, as I couldn't find anything in the manual or this forum.

Last edited by frutza; Yesterday at 20:00.
Re: How to buy tomorrow at open? [Re: frutza] #487536
9 minutes ago New
New9 minutes ago
Joined: Apr 2023
Posts: 17
V
vicknick Online
Newbie
vicknick  Online
Newbie
V

Joined: Apr 2023
Posts: 17
Maybe you could run tick() once at the end of each bar? This will trigger the function upon the next incoming price tick (which should be the open of the new bar).


Moderated by  Petra 

Powered by UBB.threads™ PHP Forum Software 7.7.1