Future bar for tomorrow

Hi everyone,

I would like to add a future bar for tomorrow using today’s closing price in AmiBroker.
Is there any way to do this using AFL code or by some other method?

Thank you in advance for your support!

There is an option in the Analysis settings that does that for you automatically.

1 Like

May I ask if I can use that data together with my existing data for calculations in AFL code?
If yes, could you please show me how to do that?

You don't have to do anything special in your code. Let's say that your system buys tomorrow at the open based on today's close calculations. When artificial bar is activated you see the entry signal for tomorrow in the trade list. Be aware that if you trade at the open, when the real open is updated, your buyprice changes.

Today is saturday, august 9th. I can see the trades for monday august 11th. Entry price is friday's close. Once Amibroker has the real opening price for monday, it will update the entry price.

1 Like

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.