Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Can a strategy be made without a primary instrument?

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

    Can a strategy be made without a primary instrument?

    If one plans on making a strategy that uses a large number of instruments (hundreds, thousands), can the strategy be made without being based/run off a primary instrument? I would like it to run on the whole basket of instruments and show me backtest simulation of the performance of the whole basket. How can I do this? Thanks!

    #2
    Protis, you could either make a so called basket test with the script running over a instrument list in the Strategy Analyzer for example and then giving you the cumulative results -



    Another approach involving more custom programming is creating a MultiSeries script - such as the SampleMultiInstrument included per default with NT.

    The full framework in our NinjaScript is documented here -

    Comment


      #3
      thanks Bertrand!

      But even the multiSeries script still needs to be run on a primary instrument, correct?

      meaning, there is no way to run a script independently without it being "run on" a particular instrument, right?

      thanks

      Comment


        #4
        Correct, you must select a valid input data series for it to run. You do not need to take action on this series, but there must be one selected when the script is started.
        MatthewNinjaTrader Product Management

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        669 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        378 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        111 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        575 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        580 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X