View Full Version : Strategy won't backtest...
maxpi
11-28-2007, 11:26 PM
I have a strategy written, it's a little complex, runs on tick bars with a data Added for minute bars, defaults to calculate on bar close =true. The idea is to have "look inside bar backtesting" and a backtest that is exactly the same as running the strategy on realtime tick bars. It works exactly as planned going forward on Market Replay data on a chart but when backtested it gets no trades... Any clues as to what I'm doing wrong here?
NinjaTrader_Josh
11-29-2007, 01:45 AM
If you can provide simple as possible isolated cases we can provide some further support. Please try using some print functions in backtesting to see what is going on. TraceOrders will be helpful too.
http://www.ninjatrader-support.com/vb/showthread.php?t=3418
http://www.ninjatrader-support.com/vb/showthread.php?t=3627
NinjaTrader_Dierk
11-29-2007, 02:08 AM
Also: pls check for funny messages in the logs
maxpi
11-29-2007, 09:09 AM
I have print messages for every variable, it gives me a snapshot of the entire strategy in the Output window every tick when running on charted tick data but nothing shows up during a backtest. I added TraceOrders to the strategy and nothing shows up also...
Setting the minimum bars before beginning execution of code is a little sticky, it would be straightforward if I could use the Added data for that but I have to use the primary data and guess how many ticks will go by before I have enough minute bars to start....
Nothing is showing up in the log.
I'll provide some code after awhile...