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 Waxavi, Today, 02:00 AM
          0 responses
          2 views
          0 likes
          Last Post Waxavi
          by Waxavi
           
          Started by elirion, Today, 01:36 AM
          0 responses
          4 views
          0 likes
          Last Post elirion
          by elirion
           
          Started by gentlebenthebear, Today, 01:30 AM
          0 responses
          4 views
          0 likes
          Last Post gentlebenthebear  
          Started by samish18, Yesterday, 08:31 AM
          2 responses
          9 views
          0 likes
          Last Post elirion
          by elirion
           
          Started by Mestor, 03-10-2023, 01:50 AM
          16 responses
          391 views
          0 likes
          Last Post z.franck  
          Working...
          X