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 SalmaTrader, 07-07-2026, 10:26 PM
        0 responses
        50 views
        0 likes
        Last Post SalmaTrader  
        Started by CarlTrading, 07-05-2026, 01:16 PM
        0 responses
        22 views
        0 likes
        Last Post CarlTrading  
        Started by CaptainJack, 06-17-2026, 10:32 AM
        0 responses
        16 views
        0 likes
        Last Post CaptainJack  
        Started by kinfxhk, 06-17-2026, 04:15 AM
        0 responses
        22 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Started by kinfxhk, 06-17-2026, 04:06 AM
        0 responses
        23 views
        0 likes
        Last Post kinfxhk
        by kinfxhk
         
        Working...
        X