Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Backtesting a major index since inception

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Backtesting a major index since inception

    I want to backtest some of my strategies against the major indeces (S&P, DJI, etc) since they were created to find optimal bear/bull market indicators. Is this possible on ninjatrader? I have IQfeed for my data but they only have S&P back to 1995 when it was created in 1957

    #2
    Hello,

    Thank you for your note.

    Unfortunately NinjaTrader does NOT provide data, so you are limited to what your data provider provides.
    If you can find a source of this data in txt format, you can import it. See this link for instructions: http://www.ninjatrader-support.com/H...V6/Import.html
    Ray S.NinjaTrader Customer Service

    Comment


      #3
      You can use the free/built-in Yahoo data provider in NinjaTrader on the S&P 500 to go back into the 1950s with daily bars. Bear market detection seems to be a popular theme recently.

      Comment


        #4
        Nice, I was hoping yahoo had that data. Thanks Anagoge

        Comment


          #5
          no dice

          In case anyone else is following this thread, NinjaTrader_RJStein was right. even though yahoo has the data, backtesting on the index through NT doesn't actually create any trades.

          I hope that this is something that they add to NT 7 when it comes out because it would be extremely valuable

          Comment


            #6
            You can trade on the index using a workaround like this:

            Create a new instrument using the instrument manager, give it any unused ticker/description, set the instrument type to stock, set the Yahoo ticker for the instrument to the index ticker (^GSPC, etc.), set the exchange to Default, download the data from Yahoo, and then trade away. I do this and it works just fine.

            Comment


              #7
              That worked perfectly! Thanks for the follow up Anagoge

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by argusthome, 03-08-2026, 10:06 AM
              0 responses
              114 views
              0 likes
              Last Post argusthome  
              Started by NabilKhattabi, 03-06-2026, 11:18 AM
              0 responses
              61 views
              0 likes
              Last Post NabilKhattabi  
              Started by Deep42, 03-06-2026, 12:28 AM
              0 responses
              40 views
              0 likes
              Last Post Deep42
              by Deep42
               
              Started by TheRealMorford, 03-05-2026, 06:15 PM
              0 responses
              43 views
              0 likes
              Last Post TheRealMorford  
              Started by Mindset, 02-28-2026, 06:16 AM
              0 responses
              82 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Working...
              X