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 08-07-2012, 05:33 AM   #1
Frederic
Member
 
Join Date: Sep 2009
Posts: 52
Thanks: 0
Thanked 0 times in 0 posts
Send a message via MSN to Frederic
Default Market data and ninjatrader.

Hello all,

I use ninjatrader 7 with a demo account (CQG).
I created more strategies, and always use same dates for backtest 07.30.2011 / 07.30/2012
Yeserday all my backtest gone fine. Today i restart the same backtest and receive some error: error on loading data, server might be busy... and so on.

what is wrong with ninja? i mean i backtested yesterday exactly the same period, then why the data are not automatically downloaded on my computer and saved?

why ninja need a connection to download data, that normally he need to have locally?

btw, it is some weeks now i use same period of time.

what is wrong ?
Frederic is offline  
Reply With Quote
Old 08-07-2012, 05:39 AM   #2
NinjaTrader_Joydeep
NinjaTrader Customer Service
 
NinjaTrader_Joydeep's Avatar
 
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
Default

Hello Frederic,
If you are connected to your connectivity provider then NinjaTrader will download any missing data/latest data.

You can either disconnect from your connectivity provider and do the backtest (provided you have historical data saved locally) or you can wait for some time and then do the backtest.
NinjaTrader_Joydeep is offline  
Reply With Quote
Old 08-07-2012, 05:43 AM   #3
Frederic
Member
 
Join Date: Sep 2009
Posts: 52
Thanks: 0
Thanked 0 times in 0 posts
Send a message via MSN to Frederic
Default

> If you are connected to your connectivity provider then NinjaTrader will download any > missing data/latest data.

meaning all my backtest from yesterday are wrong?? missing data? logically if yesterday there was no missing data, today there must not be, right?

and downloading data again......

any possibility to check if data are missing?

Thanks!
Frederic is offline  
Reply With Quote
Old 08-07-2012, 05:57 AM   #4
NinjaTrader_Joydeep
NinjaTrader Customer Service
 
NinjaTrader_Joydeep's Avatar
 
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
Default

Hello Frederic,
NinjaTrader will pull the missing data (if you are connected) from yesterday till today, when you are trying to backtest your strategy.

You can check the data manually from the Historical data manager.
  • In Control Center menu bar goto Tools>Historical Data Manager>Edit tab
  • Click on the +<Intrumnet Name> and select the appropriate data type.
NinjaTrader_Joydeep is offline  
Reply With Quote
Old 08-07-2012, 06:03 AM   #5
Frederic
Member
 
Join Date: Sep 2009
Posts: 52
Thanks: 0
Thanked 0 times in 0 posts
Send a message via MSN to Frederic
Default

Hi,

I undersntad, but why it was not done yesterday and also days before, because I am always connected? Change in data on the server, meaning all backtests are wrong... right?
Frederic is offline  
Reply With Quote
Old 08-07-2012, 06:20 AM   #6
NinjaTrader_Joydeep
NinjaTrader Customer Service
 
NinjaTrader_Joydeep's Avatar
 
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
Default

Hello Frederic,
Yes, if your data is updated then NinjaTrader will not pull any data.

Its not about right or wrong. If you have missing data etc then your strategy is being evaluated on that data set. When you are filling the gaps (i.e. data upto date) then your strategy is being evaluated on a new data set. The backtest report for the two will be different as it was tested on 2 different data set.
NinjaTrader_Joydeep is offline  
Reply With Quote
Old 08-07-2012, 07:32 AM   #7
Frederic
Member
 
Join Date: Sep 2009
Posts: 52
Thanks: 0
Thanked 0 times in 0 posts
Send a message via MSN to Frederic
Default

Hello,

No- I do not understand. let say my backtest period is 07/302011 to 07/30/2012. I never change dates for this. this means that yesterday, today but also tomorrow, ninja has not to download data, cause he already done it weeks ago. IF ninja download data, this means my data on my computer are missing something and also that my backtest/optimization are not correct.

right now, i received an error for 6E, 6B: error on loading chart data for 6e.... connection to data server is busy, please try again later, but ninja continue to download data for CL and 3 other markets from my list, same data that ninja tries 4 hours now to download.

why yesterday ninja downloaded no data for 07/302011 to 07/30/2012 ??
Frederic is offline  
Reply With Quote
Old 08-07-2012, 07:49 AM   #8
NinjaTrader_Joydeep
NinjaTrader Customer Service
 
NinjaTrader_Joydeep's Avatar
 
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
Default

Hello Frederic,
To assist you further may I know:
1. Who your connectivity provider is?

2. Can you confirm you have adequate historical data stored in your PC. You can do so from:
  • In Control Center menu bar goto Tools>Historical Data Manager>Edit tab

3. Is "Save chart data as historical" is checked?
  • In Control Center menu bar goto Tools>Options>Data tab
  • In the data tab is the option "Save chart data as historical" checked or unchecked?


I look forward to assisting you further.
NinjaTrader_Joydeep is offline  
Reply With Quote
Old 08-07-2012, 08:15 AM   #9
Frederic
Member
 
Join Date: Sep 2009
Posts: 52
Thanks: 0
Thanked 0 times in 0 posts
Send a message via MSN to Frederic
Default

Hello,

as I wrote, I use CQG demo account, and the computer on which is installed NT7 is a dedicated backtest/optimisation computer (there is no chart, only Strategy analyzer working) and computer is always connected.

What can be the problem then?

Thanks!
Frederic is offline  
Reply With Quote
Old 08-07-2012, 08:22 AM   #10
NinjaTrader_Joydeep
NinjaTrader Customer Service
 
NinjaTrader_Joydeep's Avatar
 
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
Default

Hello,
Thanks for the information.

Can you also please confirm the following:

1. Can you confirm you have adequate historical data stored in your PC. You can do so from:
  • In Control Center menu bar goto Tools>Historical Data Manager>Edit tab

2. Is "Save chart data as historical" is checked?
  • In Control Center menu bar goto Tools>Options>Data tab
  • In the data tab is the option "Save chart data as historical" checked or unchecked?
NinjaTrader_Joydeep is offline  
Reply With Quote
Old 08-07-2012, 08:28 AM   #11
Frederic
Member
 
Join Date: Sep 2009
Posts: 52
Thanks: 0
Thanked 0 times in 0 posts
Send a message via MSN to Frederic
Default

Hello Joy,

yes, I can see in historical Data Manager the right dates, and "Save chart data as historical" is not checked ( i think it is default option ninja after installation).

all my backtest show me right now 0 trade in 1 year, o PNL... no result at all..

hmm....
Frederic is offline  
Reply With Quote
Old 08-07-2012, 08:45 AM   #12
NinjaTrader_Joydeep
NinjaTrader Customer Service
 
NinjaTrader_Joydeep's Avatar
 
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
Default

Hello Frederic,
Thanks for the information.

Please follow the below steps and then try backtesting you strategy.
  • In Control Center menu bar goto Tools>Options>Data tab
  • In the Data tab please check the option "Save chart data as historical"

Now connect to your connectivity provider and download the historical data using the Download feature.

Code:
In Control Center menu bar goto Tools>Historical Data Manager>Download tab
In the Download tab please download the historical data for the necessary Instrument for the past one year.
Please refer to our help guide to know more on how to use the Download tab
http://www.ninjatrader.com/support/h...l?download.htm

After you have downloaded the data please let me know if you can backtest the strategy or not.

I look forward to assisting you further.
NinjaTrader_Joydeep is offline  
Reply With Quote
Old 08-28-2012, 09:07 AM   #13
nailz420
Member
 
Join Date: Aug 2009
Posts: 90
Thanks: 0
Thanked 8 times in 7 posts
Default

I can confirm this issue and I do have "save chart data as historical" enabled. Using Tradersplatform Rithmic datafeed. Each time backtest is run, the full historical data is download, not just for the time since the last backtest. Same thing happens when I try to view results of the backtest which require chart data or rerun of the strategy. This doesn't happen if i disconnect from the live feed.
nailz420 is offline  
Reply With Quote
Old 08-28-2012, 09:46 AM   #14
NinjaTrader_Joydeep
NinjaTrader Customer Service
 
NinjaTrader_Joydeep's Avatar
 
Join Date: Dec 2011
Location: India
Posts: 3,286
Thanks: 580
Thanked 546 times in 541 posts
Default

Hello nailz420,
Thanks for your post.

Please refer to the section "When does NinjaTrader loads historical data" from our help guide to know more about it
http://www.ninjatrader.com/support/h...rical_data.htm
NinjaTrader_Joydeep is offline  
Reply With Quote
Old 10-12-2012, 01:29 PM   #15
nailz420
Member
 
Join Date: Aug 2009
Posts: 90
Thanks: 0
Thanked 8 times in 7 posts
Default

During backtest NT tries to download historical data when there is "missing data". Why does NT think there is missing data for dates months or years in the past? Why does NT tries to download data EACH time I run the backtest on the SAME dates in the PAST, example 1/1/2010-1/1/2011? Is it because there is no data for weekends for example, so it tries to fill in those gaps each time?
nailz420 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
Are Market if Touched orders available in Ninjatrader? pedroprada@bellsouth.net Charting 2 02-01-2012 11:47 AM
Kinetick - A new Market Data Feed Service for NinjaTrader NinjaTrader_Ray Version 7 Beta General Questions & Bug Reports 169 09-08-2010 01:07 AM
Kinetick - A new market data feed for NinjaTrader 7 NinjaTrader_Ray News and Announcements 0 05-19-2010 04:15 PM
South African Market Data in NinjaTrader WarrenRiley Connecting 1 12-18-2009 02:49 AM
Mohan’s Market Force now supports NinjaTrader NinjaTrader_Ray News and Announcements 0 09-28-2009 10:16 AM


All times are GMT -6. The time now is 12:41 AM.