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 10-07-2008, 02:22 PM   #1
mazachan
Senior Member
 
Join Date: Jun 2007
Posts: 112
Thanks: 0
Thanked 0 times in 0 posts
Default Backtesting equities with daily data?

I tried looking but I can't seem to find any information, but can ninjatrader test equities (particularly the SPY etf) on a daily level with the yahoo connection? Nothing seems to be coming up when I run the back test.

Thanks
mazachan is offline  
Reply With Quote
Old 10-07-2008, 02:47 PM   #2
NinjaTrader_Ben
NinjaTrader Customer Service
 
NinjaTrader_Ben's Avatar
 
Join Date: May 2008
Location: Denver, CO
Posts: 3,157
Thanks: 0
Thanked 3 times in 3 posts
Default

Hello,

Yes, you can. If you can pull up a daily chart with backfill data using Yahoo, you can back test on the daily timeframe.
NinjaTrader_Ben is offline  
Reply With Quote
Old 10-07-2008, 09:51 PM   #3
anachronist
Senior Member
 
Join Date: Jul 2008
Posts: 271
Thanks: 4
Thanked 7 times in 7 posts
Default

Yes, that's what I do. Just set up a Yahoo data connection, and in your chart be sure to set the "bars back" parameter to the number of bars you want. If you set the "days back" you will only get something like 250 days maximum regardless of your setting.

-Alex
anachronist is offline  
Reply With Quote
Old 10-08-2008, 11:15 AM   #4
mazachan
Senior Member
 
Join Date: Jun 2007
Posts: 112
Thanks: 0
Thanked 0 times in 0 posts
Default

So my question would be, is the Min. Bars Required parameter in the Strategy analyzer the number of bars back that you would want to look prior to the From date? Or is that the minimum number of bars including the From date?

And does the multiple time frame work, like for example, if I want to do something with the weekly time frame by using Add(PeriodType.Week, 1);?
Last edited by mazachan; 10-08-2008 at 11:17 AM.
mazachan is offline  
Reply With Quote
Old 10-08-2008, 11:30 AM   #5
anachronist
Senior Member
 
Join Date: Jul 2008
Posts: 271
Thanks: 4
Thanked 7 times in 7 posts
Default

What I meant was, when you create a chart, you are first shown the "format data series" dialog that has the following choices:

Days back
Bars back
Start date

If you want more than 250 bars (365 days), it doesn't seem to matter how you set "Days back". You need to set "Bars back" to something large.

These things are not the same as "minimum bars back" that you set in the strategy analyzer.

-Alex
anachronist is offline  
Reply With Quote
Old 10-08-2008, 11:36 AM   #6
NinjaTrader_Ben
NinjaTrader Customer Service
 
NinjaTrader_Ben's Avatar
 
Join Date: May 2008
Location: Denver, CO
Posts: 3,157
Thanks: 0
Thanked 3 times in 3 posts
Default

Hello,


The from date tells what data will be used. The min. bars required is then counted on top of that date. So if your from date is the 1st of the month, and your min. bars is 20, then since you are using daily data your strategy will start on the 21st.



The multi-timeframe part is correct and possible.
NinjaTrader_Ben 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
Calculating Daily data bars from 5 mn data Jean-Marc-Molina Miscellaneous Support 2 09-30-2008 10:27 AM
OnBarUpdate() problem when backtesting daily data hicker Strategy Development 2 05-02-2008 03:47 AM
Indices and equities data not showing up caffoo Market Analyzer 3 01-18-2008 01:37 AM
BackTesting data latkinso Strategy Analyzer 3 01-04-2008 12:48 PM
Backfill data in Daily chart (July/August data missing) RK_trader Charting 4 09-09-2007 10:52 PM


All times are GMT -6. The time now is 06:57 PM.