![]() |
|
|||||||
| Strategy Analyzer Support for automated system backtesting and optimization using the NinjaTrader Strategy Analyzer. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Senior Member
Join Date: Apr 2007
Location: , ,
Posts: 150
Thanks: 0
Thanked 0 times in 0 posts
|
I have downloaded daily data of the S&P500 index from yahoo. When I try to do a backtest of NinjaTrader's built in moving average crossing strategy I don't get any entries when backtesting. But I can see in the charts that the averages cross so I should have entries.
On another instrument things work as expected. What am I overlooking? |
|
|
|
|
|
#2 | |
|
NinjaTrader Customer Service
Join Date: Jul 2008
Location: Denver, CO, USA
Posts: 1,828
Thanks: 4
Thanked 19 times in 18 posts
|
Quote:
Thank you for your post. You cannot place trades on Indices themselves, so there will be no trades in the backtest. Test other instruments to verify.
Ray S
NinjaTrader Customer Service |
|
|
|
|
|
|
#3 | |
|
Senior Member
Join Date: Apr 2007
Location: , ,
Posts: 150
Thanks: 0
Thanked 0 times in 0 posts
|
Quote:
So what is the easiest way around that? Maybe export the indexdata and import it again, creating a 'fake' share that holds the same data on which I can then place trades? Or is there a simpler approach? |
|
|
|
|
|
|
#4 |
|
NinjaTrader Product Manager
Join Date: May 2007
Location: Denver, CO
Posts: 17,458
Thanks: 1
Thanked 106 times in 70 posts
|
You can try that if you want. There is no workaround to backtesting indexes because it doesn't make sense to trade on them. If you wanted to test the S&P500 I suggest you just use something like SPY or some other tradeable ETF that tracks the S&P.
Josh
NinjaTrader Customer Service |
|
|
|
|
|
#5 |
|
Senior Member
Join Date: Apr 2007
Location: , ,
Posts: 150
Thanks: 0
Thanked 0 times in 0 posts
|
Backtesting strategies on indices can make sense if you want to test if certain patterns have predictive powers. But you are right that in terms of 'trades' an index doesn't make sense. SPY will be close enough. Thanks for the suggestion!
|
|
|
|
|
|
#6 | |
|
Senior Member
Join Date: Sep 2008
Posts: 183
Thanks: 0
Thanked 1 time in 1 post
|
Quote:
The reason I wanted to do this was to compare trading futures, ETFs, and index funds to the "idealized" trading of the index. |
|
|
|
|
|
|
#7 |
|
Junior Member
Join Date: Feb 2009
Posts: 13
Thanks: 0
Thanked 0 times in 0 posts
|
These posts were very helpful to me... thx... To my view too it makes sense to backtest indices for certain reasons as stated below
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Backtest won´t work on Indices - solved by recreating the Index as a Stock. | tomcat | Strategy Analyzer | 5 | 03-23-2010 06:24 AM |
| Stop Loss work differently in Backtest and Real Time simulator | stefy | Strategy Development | 3 | 08-28-2008 08:42 AM |
| wrong yahoo data? | Hannes.S | Charting | 2 | 07-02-2008 01:34 AM |
| Streaming Yahoo Data | DivineDragon | Connecting | 2 | 03-05-2008 01:34 PM |
| So does Gtc work in backtest? | henry.omd | Historical NinjaTrader 6.5 Beta Threads | 10 | 12-30-2007 04:24 PM |