Good Backtesting System that handles IOG?

Dgrzyw01

Newbie
Messages
1
Likes
0
I have been using NinjaTrader for the past few weeks for backtesting and up until now have been satisfied with their product.

However, I have run into some problems with the Calculate On Bar Close logic when trying to backtest stratgies for Long time periods (15+ years) using OHLC daily data only (I understand that this isn't a problem if you have intraday data). The main issue is that it won't allow interbar order generation (IOG).

I.e. a simple strategy that says to enter long at the close when the 20 day MA is greater then the close won't enter the order until the bar closes (this bar is the close of the day) and therefore doesn't get triggered until the next bar (open of the next day). I understand that if I used intraday data then it would calculate on a prior bar and execute on the close but for back testing long time periods only limited data (OHLC) is available. Ninja trader also doesn't allow to execute a trader at bar-1 even for backtesting purposes. I understand the logic behind this as it would be forward looking or backward looking and defy trading logic but my purpose it simply for backtesting purposes.

Can anyone recommend a good backtesting suite that would allow IOG or run into this issue when backtesting stock strategies? All recommendations are appreciated, the cheaper the product the better.
 
The MA value is known only after the close. Naturally NT won't let you look forward. You can do that in some other ways but this is getting more into consulting than anything else, it is very involved. I think the way you are thinking you may run into serious forward looking problems though. Your issue here is not IOG. What you are trying to do naturally generates an order at the next open unless you do some serious amount of work. Backward looking is allowed in backtesting because that's what it is. Forward looking is prohibited.
 
Top