NinjaTrader Support Forum  
X

Attention!

This website will be down for maintenance from Friday May 24th at 6PM MDT until Saturday May 25th at 11AM MDT. We apologize for the inconvenience. If you need assistance during this time, please email sales@ninjatrader.com


Go Back   NinjaTrader Support Forum > Application Technical Support > Strategy Analyzer

Strategy Analyzer Support for automated system backtesting and optimization using the NinjaTrader Strategy Analyzer.

Reply
 
Thread Tools Display Modes
Old 11-28-2007, 10:26 PM   #1
maxpi
Senior Member
 
Join Date: Jun 2007
Posts: 151
Thanks: 0
Thanked 0 times in 0 posts
Default Strategy won't backtest...

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?
maxpi is offline  
Reply With Quote
Old 11-29-2007, 12:45 AM   #2
NinjaTrader_Josh
NinjaTrader Product Manager
 
NinjaTrader_Josh's Avatar
 
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
Default

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/v...ead.php?t=3418
http://www.ninjatrader-support.com/v...ead.php?t=3627
NinjaTrader_Josh is offline  
Reply With Quote
Old 11-29-2007, 01:08 AM   #3
NinjaTrader_Dierk
Administrator
 
NinjaTrader_Dierk's Avatar
 
Join Date: Mar 2005
Location: Bamberg, Germany
Posts: 9,994
Thanks: 0
Thanked 6 times in 6 posts
Default

Also: pls check for funny messages in the logs
NinjaTrader_Dierk is offline  
Reply With Quote
Old 11-29-2007, 08:09 AM   #4
maxpi
Senior Member
 
Join Date: Jun 2007
Posts: 151
Thanks: 0
Thanked 0 times in 0 posts
Default

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...
maxpi is offline  
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Strategy to backtest Woodies CCI trades LG Strategy Development 7 04-23-2013 10:02 AM
Backtest not available BradB Strategy Analyzer 9 11-10-2007 09:41 PM
Strategy Variables not Updating in Backtest Mode dgregor5 Strategy Analyzer 2 07-31-2007 02:50 PM
stoploss and MAE in backtest ceesvh Strategy Analyzer 8 07-12-2007 08:02 AM
backtest in replaymode? fliesch Strategy Analyzer 6 06-17-2007 08:43 AM


All times are GMT -6. The time now is 09:06 AM.