Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

All companies in S&P 500

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

    All companies in S&P 500

    Is it possible to run strategy against all individual companies comprised S&P 500 automatically?

    #2
    Hello PageNotFound404,

    Thanks for your post.

    Yes, it is possible.

    There are two approaches, you can run one strategy and add all 500 instruments to the one script or you can create one script and apply it 500 times, or some variation between those two extremes.

    Your PC or VPS would be the limitation. You can apply the strategies directly in the strategies tab so that you do not have to deal with the overhead of creating charts. I would also suggest minimizing as much as practical the amount of historical data loaded.


    Paul H.NinjaTrader Customer Service

    Comment


      #3
      Appreciate.
      -PNF

      Comment


        #4
        Hello, I have a related question. I have been running a strategy on each instrument in the S&P500 for about 2 years by creating a single instrument script and applying it 500 times. It works surprisingly well, considering its on a cloud based semi ok virtual PC. I was wondering, is there any performance benefit to changing the strategy to multi instrument with all 500 instruments added to the one script? NT and my PC aren't thrilled when I enable 100 instruments at a time x5, but perhaps it would be equally not thrilled enabling a multi instrument strategy with 500 instruments?

        Comment


          #5
          Hello RobotSyndicate,

          While there would be less overhead with one script instance in memory trading multiple instruments, having 500 instruments could start causing some issues if one of the instruments doesn't want to load.

          With all of these separate, you can keep some instruments running and restart others if other instruments have any kind of error or performance issues.
          Chelsea B.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by xiinteractive, 04-09-2024, 08:08 AM
          5 responses
          13 views
          0 likes
          Last Post NinjaTrader_Erick  
          Started by swestendorf, Today, 11:14 AM
          2 responses
          5 views
          0 likes
          Last Post NinjaTrader_Kimberly  
          Started by Mupulen, Today, 11:26 AM
          0 responses
          2 views
          0 likes
          Last Post Mupulen
          by Mupulen
           
          Started by Sparkyboy, Today, 10:57 AM
          1 response
          6 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by TheMarlin801, 10-13-2020, 01:40 AM
          21 responses
          3,918 views
          0 likes
          Last Post Bidder
          by Bidder
           
          Working...
          X