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 > Automated Trading

Automated Trading Support for automated trading systems using NinjaScript. Support for our ATI (Automated Trading Interface) used to link an external application such as TradeStation and eSignal to NinjaTrader.

Reply
 
Thread Tools Display Modes
Old 06-09-2009, 02:22 PM   #1
pistolpete
Senior Member
 
Join Date: Feb 2008
Posts: 176
Thanks: 0
Thanked 0 times in 0 posts
Default backtest data

I am a new customer of Iqfeed, primarily so I can backtest data and I have noticed that a lot of the time there are large gaps in the data. I have contacted IQfeed about this problem and they say it is not on their end that it is a problem with ninjatrader. Could you help me resolve this issue?
Below is a jpeg of data that appears to have gapped on me.
Thanks
Pete
Attached Images
File Type: jpg Gap Data.jpg (72.0 KB, 8 views)
pistolpete is offline  
Reply With Quote
Old 06-09-2009, 02:28 PM   #2
NinjaTrader_RJ
NinjaTrader Customer Service
 
NinjaTrader_RJ's Avatar
 
Join Date: Jul 2008
Location: Denver, CO, USA
Posts: 1,828
Thanks: 4
Thanked 19 times in 18 posts
Default

Quote:
Originally Posted by pistolpete View Post
I am a new customer of Iqfeed, primarily so I can backtest data and I have noticed that a lot of the time there are large gaps in the data. I have contacted IQfeed about this problem and they say it is not on their end that it is a problem with ninjatrader. Could you help me resolve this issue?
Below is a jpeg of data that appears to have gapped on me.
Thanks
Pete
Hello Pete,

Thank you for your post.


Can you open a chart for this time period and see if the historical data loads?
NinjaTrader_RJ is offline  
Reply With Quote
Old 06-10-2009, 06:58 AM   #3
pistolpete
Senior Member
 
Join Date: Feb 2008
Posts: 176
Thanks: 0
Thanked 0 times in 0 posts
Default

yes I am getting all the historical data when I bring up the chart.
pistolpete is offline  
Reply With Quote
Old 06-10-2009, 07:18 AM   #4
NinjaTrader_RJ
NinjaTrader Customer Service
 
NinjaTrader_RJ's Avatar
 
Join Date: Jul 2008
Location: Denver, CO, USA
Posts: 1,828
Thanks: 4
Thanked 19 times in 18 posts
Default

Quote:
Originally Posted by pistolpete View Post
yes I am getting all the historical data when I bring up the chart.
Can you run the backtest again and bring up the Charts tab?

Do you see data for this period and were there any trades placed?

More information on the Charts tab here: http://www.ninjatrader-support.com/H...eDataTabs.html
NinjaTrader_RJ is offline  
Reply With Quote
Old 06-10-2009, 07:36 AM   #5
pistolpete
Senior Member
 
Join Date: Feb 2008
Posts: 176
Thanks: 0
Thanked 0 times in 0 posts
Default

I see data and I see trades taking place but there is nothing showing when I go to my graphs - daily net profit.
Thanks
Pete
pistolpete is offline  
Reply With Quote
Old 06-10-2009, 07:46 AM   #6
NinjaTrader_RJ
NinjaTrader Customer Service
 
NinjaTrader_RJ's Avatar
 
Join Date: Jul 2008
Location: Denver, CO, USA
Posts: 1,828
Thanks: 4
Thanked 19 times in 18 posts
Default

Quote:
Originally Posted by pistolpete View Post
I see data and I see trades taking place but there is nothing showing when I go to my graphs - daily net profit.
Thanks
Pete
Interesting... can you go to the "Periods" tab and choose Daily next to period?

Then look at these dates and see if there is a value under "Net."

Thank you!
NinjaTrader_RJ is offline  
Reply With Quote
Old 06-10-2009, 08:27 AM   #7
pistolpete
Senior Member
 
Join Date: Feb 2008
Posts: 176
Thanks: 0
Thanked 0 times in 0 posts
Default

It isn't showing in periods either.
it goes right from April 1 to May 1. But the chart shows around 1 trade a day which is correct.
Thanks
Pete
pistolpete is offline  
Reply With Quote
Old 06-10-2009, 08:33 AM   #8
NinjaTrader_RJ
NinjaTrader Customer Service
 
NinjaTrader_RJ's Avatar
 
Join Date: Jul 2008
Location: Denver, CO, USA
Posts: 1,828
Thanks: 4
Thanked 19 times in 18 posts
Default

Quote:
Originally Posted by pistolpete View Post
It isn't showing in periods either.
it goes right from April 1 to May 1. But the chart shows around 1 trade a day which is correct.
Thanks
Pete
Please try repairing your database: Tools --> Options --> Misc --> Repair DB.

Then perform the backtest again and let me know if the issue persists.
NinjaTrader_RJ is offline  
Reply With Quote
Old 06-10-2009, 08:54 AM   #9
pistolpete
Senior Member
 
Join Date: Feb 2008
Posts: 176
Thanks: 0
Thanked 0 times in 0 posts
Default

that didn't work.
This is a significant problem because I am basing my live trades on my total net profit of my back tests of 2 months at a time. If one of the months is missing then it is useless.
please help.
Thanks
Pete
pistolpete is offline  
Reply With Quote
Old 06-10-2009, 09:02 AM   #10
NinjaTrader_RJ
NinjaTrader Customer Service
 
NinjaTrader_RJ's Avatar
 
Join Date: Jul 2008
Location: Denver, CO, USA
Posts: 1,828
Thanks: 4
Thanked 19 times in 18 posts
Default

Quote:
Originally Posted by pistolpete View Post
that didn't work.
This is a significant problem because I am basing my live trades on my total net profit of my back tests of 2 months at a time. If one of the months is missing then it is useless.
please help.
Thanks
Pete
I understand.

Can you perform the same period backtest with the SampleMACrossover Strategy? Does the issue happen with this strategy?

If so, please let me know what datafeed, period, and instrument, so I can recreate this backtest on my end.

Thank you!
NinjaTrader_RJ is offline  
Reply With Quote
Old 06-11-2009, 07:56 AM   #11
pistolpete
Senior Member
 
Join Date: Feb 2008
Posts: 176
Thanks: 0
Thanked 0 times in 0 posts
Default

I just ran the test on the sample MA crossover and the same thing happened. I ran it on Apache APA NYSE from iqfeed from 1/1/2009 to 6/10/2009. I have brought up the problem with IQfeed and they have been saying that is deffinately a NT problem and that they have all of the data for the stocks that I am running.
pistolpete is offline  
Reply With Quote
Old 06-11-2009, 08:44 AM   #12
NinjaTrader_RJ
NinjaTrader Customer Service
 
NinjaTrader_RJ's Avatar
 
Join Date: Jul 2008
Location: Denver, CO, USA
Posts: 1,828
Thanks: 4
Thanked 19 times in 18 posts
Default

I tested the SampleMaCrossover strategy for stock APA from 1/12009 through today, 6/11/2009. I used 5 and 10 for the fast and slow respectively.

It shows trades as going through every day. Can you try this same backtest?
Attached Images
File Type: jpg Daily PnL.JPG (73.2 KB, 4 views)
NinjaTrader_RJ is offline  
Reply With Quote
Old 06-11-2009, 08:51 AM   #13
pistolpete
Senior Member
 
Join Date: Feb 2008
Posts: 176
Thanks: 0
Thanked 0 times in 0 posts
Default

Same thing.
I tried multiple time series as well, 10min and 1 min and it shows a month gap.
pistolpete is offline  
Reply With Quote
Old 06-11-2009, 08:52 AM   #14
pistolpete
Senior Member
 
Join Date: Feb 2008
Posts: 176
Thanks: 0
Thanked 0 times in 0 posts
Default

sorry it gaps from 1/8/2009 to 4/21/2009 but shows trades on the charts for that period of time.
pistolpete is offline  
Reply With Quote
Old 06-11-2009, 08:58 AM   #15
NinjaTrader_RJ
NinjaTrader Customer Service
 
NinjaTrader_RJ's Avatar
 
Join Date: Jul 2008
Location: Denver, CO, USA
Posts: 1,828
Thanks: 4
Thanked 19 times in 18 posts
Default

Quote:
Originally Posted by pistolpete View Post
sorry it gaps from 1/8/2009 to 4/21/2009 but shows trades on the charts for that period of time.
Ok, can you please try the following and test a new backtest between each issue?

Please try repairing your database:
1. Go to Tools --> Options --> Misc --> Repair DB

Please try repairing your NinjaTrader Installation:
1. Shut Down NinjaTrader
2. Go to Uninstall Programs in the Windows Control Panel
3. Select NinjaTrader and hit the "repair" or "change" button and follow the instructions to repair the installation.
NinjaTrader_RJ 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
ETF Data backtest pistolpete Automated Trading 1 04-15-2009 12:57 PM
Backtest with Yahoo data doesn't work FireFly Strategy Analyzer 6 02-11-2009 10:25 AM
getting data for backtest latkinso General Programming 8 01-23-2009 02:00 PM
ExitOnClose at EOD data backtest sniper29a Strategy Development 21 12-15-2008 11:40 AM
Retrieving data from backtest UI 8DTK8 Strategy Analyzer 1 11-13-2008 07:10 AM


All times are GMT -6. The time now is 07:37 AM.