![]() |
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
|
|||||||
| Strategy Analyzer Support for automated system backtesting and optimization using the NinjaTrader Strategy Analyzer. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Junior Member
Join Date: Aug 2010
Location: Houston
Posts: 16
Thanks: 0
Thanked 4 times in 2 posts
|
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 |
|
|
|
|
|
#2 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
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.
Ryan M
NinjaTrader Customer Service |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Aug 2010
Location: Houston
Posts: 16
Thanks: 0
Thanked 4 times in 2 posts
|
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 |
|
|
|
|
|
#4 |
|
NinjaTrader Customer Service
Join Date: Sep 2009
Location: Denver, CO
Posts: 8,117
Thanks: 249
Thanked 418 times in 415 posts
|
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. .
Ryan M
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Aug 2010
Location: Houston
Posts: 16
Thanks: 0
Thanked 4 times in 2 posts
|
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.
|
|
|
|
|
|
#6 |
|
Junior Member
Join Date: Aug 2010
Location: Houston
Posts: 16
Thanks: 0
Thanked 4 times in 2 posts
|
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. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |