In Amibroker when you are generating your trading signals from the backtest there is one important setting that you need to use most of the time. If you get this wrong then your Amibroker trading signals will be wrong… so when should you use the ‘Add Artificial Future Bar’ setting in Amibroker?

When your system gets a signal today and enters tomorrow, it’s a one day delay between the signal and the entry. If you do a backtest today just normally, the backtest won’t show you that there’s a new trade that needs to be opened tomorrow because it’s only showing you the trades that are opened up until today. In the analysis settings, there’s a box that you tick saying that says “add artificial future bar” to show tomorrow’s trade picks. What it does is it runs the backtest but on the last bar of the backtest, it takes today’s bar and copies it to tomorrow and pretends that there’s a bar tomorrow. Thus, the backtest will see the signal today and then execute the signal tomorrow on the fake bar so that in your backtest results you can see, that there’s a trade that’s going to open tomorrow and you have to open that trade.

The opening price and the number of shares is an estimate based on today’s price, in which it’s not perfect. Hence, tomorrow at the open, the most accurate way to do it is to say, where is the price now in the market depth before the market opens? And say, well it’s going to open about here, therefore that’s going to be the price. Then divide the value by the number of price to get you the number of shares.

The other way you can do it, which is slightly less accurate but pretty closed, is by saying “I know I need to buy $500 worth, what was the close yesterday?” Do $500 worth to divided by the close yesterday that gives you the number of shares, which is pretty close. That’s what I do.

author avatar
Adrian Reid Founder and CEO
Adrian is a full-time private trader based in Australia and also the Founder and Trading Coach at Enlightened Stock Trading, which focuses on educating and supporting traders on their journey to profitable systems trading. Following his successful adoption of systematic trading which generated him hundreds of thousands of dollars a year using just 30 minutes a day to manage his system trading workflow, Adrian made the easy decision to leave his professional work in the corporate world in 2012. Adrian trades long/short across US, Australian and international stock markets and the cryptocurrency markets. His trading systems are now fully automated and have consistently outperformed international share markets with dramatically reduced risk over the past 20+ years. Adrian focuses on building portfolios of profitable, stable and robust long term trading systems to beat market returns with high risk adjusted returns. Adrian teaches traders from all over the world how to get profitable, confident and consistent by trading systematically and backtesting their own trading systems. He helps profitable traders grow and smooth returns by implementing a portfolio of trading systems to make money from different markets and market conditions.