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 04-03-2012, 09:00 AM   #1
nsymms
Junior Member
 
Join Date: Aug 2010
Location: Houston
Posts: 16
Thanks: 0
Thanked 4 times in 2 posts
Default Backtests extremely slow

Hi I'm not sure if this has been covered before, but here goes....

Yesterday I loaded a years' worth of tick data for one instrument into NT 7.1000.9 -- it all went well, the data appears to be there. I also had it generate minute and day data while it was importing.

However, now when I run strategy backtests or optimizations, they spend quite a bit of time "loading" data. At least that's what it says on the status window of the control center. I'm trying to test 4 months on a minute-based strategy. Before I loaded all the tick data, it used to take about 10 seconds or less. Now it takes several minutes for the same run.

Is there something I can do to speed this up?

Thanks
nsymms is offline  
Reply With Quote
Old 04-03-2012, 09:10 AM   #2
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

Hi nsymms,

First step would be to figure out if the time it takes to load is caused by NinjaTrader downloading the data from your data provider. The only way to prevent it completely from trying to download data is to disconnect when you're making the backtest.

There are many more data points in tick based charts compared to minute, so the time it takes could also be due to processing more data.
NinjaTrader_RyanM is offline  
Reply With Quote
Old 04-03-2012, 10:06 AM   #3
nsymms
Junior Member
 
Join Date: Aug 2010
Location: Houston
Posts: 16
Thanks: 0
Thanked 4 times in 2 posts
Default

Thanks Ryan for the quick response. Strangely enough, it is actually pulling data from my provider (MBT). My network sniffer shows NT is pulling minute data for the entire testing period. Assuming it's been doing this all along, I have no idea why it's slower now than it was before.

So what's the purpose of me loading all that data into the history center if backtests will pull data from the provider anyway?

Thanks
nsymms is offline  
Reply With Quote
Old 04-03-2012, 10:12 AM   #4
NinjaTrader_RyanM
NinjaTrader Customer Service
 
NinjaTrader_RyanM's Avatar
 
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
Default

NinjaTrader loads data from your data provider whenever it determines it could potentially not have all the data pertaining to the requested time period.

You can use the data you imported and prevent NT from downloading by either disconnecting from the data provider, disabling historical data requests for the connection, or by unchecking Get Data from Server under tools > Options > Data tab. .
NinjaTrader_RyanM is offline  
Reply With Quote
Old 04-03-2012, 10:25 AM   #5
nsymms
Junior Member
 
Join Date: Aug 2010
Location: Houston
Posts: 16
Thanks: 0
Thanked 4 times in 2 posts
Default

Okay, since I trust my imported data, I'll just disconnect whenever I'm doing backtests with that instrument. Of course now the problem is that I'm running the strategy and trying to test it at the same time, so I can't really disconnect... Time to fire up the virtual machine.

edit: Actually, when running backtests, I'll just un-check the "get data from server" in tools->options->data as suggested. No need for all that fancy virtual technology.

Thanks again
Last edited by nsymms; 04-03-2012 at 10:43 AM.
nsymms is offline  
Reply With Quote
Old 04-03-2012, 09:20 PM   #6
nsymms
Junior Member
 
Join Date: Aug 2010
Location: Houston
Posts: 16
Thanks: 0
Thanked 4 times in 2 posts
Default

Just for anyone who may be reading this thread in the future...

What finally fixed this issue for me was running "Repair DB" from the Tools->Options->Data dialog. Evidently all that fiddling around with imports and such must have messed up the database. The "Repair" option solved my problem -- no more slowness, no more trying to fetch data from my provider during backtests.
nsymms 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
NT extremely slow kashter Connecting 2 10-11-2011 06:14 AM
Extremely slow loading of indicators aediaz1 General Programming 3 04-25-2011 06:35 AM
Retrieving data extremely slow Jim68 Connecting 3 05-11-2010 06:53 AM
Extremely slow startup monti1a Miscellaneous Support 2 06-11-2009 08:16 AM
NT EXTREMELY slow to open lately Taters Miscellaneous Support 12 06-14-2008 04:11 PM


All times are GMT -6. The time now is 11:48 AM.