PDA

View Full Version : Backtesting equities with daily data?


mazachan
10-07-2008, 02:22 PM
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

NinjaTrader_Ben
10-07-2008, 02:47 PM
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.

anachronist
10-07-2008, 09:51 PM
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

mazachan
10-08-2008, 11:15 AM
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);?

anachronist
10-08-2008, 11:30 AM
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

NinjaTrader_Ben
10-08-2008, 11:36 AM
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.