Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Running optimization on multiple assets

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

    Running optimization on multiple assets

    Hello everyone,

    is it possible to run an optimization for multiple assets? I know that it is possible to select e.g. all shares in one index to run an optimization for, but the problem is that the optimization will be done for each selected asset individually and not give me the best parameters for the whole set of parameters.
    For example, if I select the stocks DOW30 as underlying instruments I dont really want to know which values would be best for AAPL, AMGN, BA, etc. individually, but which values would lead to the profit factor or whatever I am optimizing an for alle values combined. Can that be done via Ninjatrader?

    Kind regards and thanks in advance

    #2
    Hello funtra513,

    By assets do you mean instruments?

    You can run a backtest or optimization on an instrument list.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Hello,

      yes, I mean instruments.
      Yes sure, it is possible to run an optimization on an instrument list, but then I get the optimized parameters for each instrument individually, but I would like to know which parameters would have been the best choice for the whole set combined. Is that possible?

      Comment


        #4
        Hello funtra513,

        No, this would not combine the instruments. Each optimization and backtest is separate.

        You can add instruments to a single strategy with AddDataSeries() and these would be combined.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Hi,

          but adding another data series can only be used to apply some conditions to a strategy and not to open trades within the other series right? So for example I if apply the strategy to AAPL and add AddDataSeries(MSFT....) its not possible to open trades in MSFT using this strategy?

          Comment


            #6
            Hello funtra513,

            Orders can be placed to other series by using the BarsInProgress index of that series.

            EnterLong(int barsInProgressIndex, int quantity, string signalName)
            Chelsea B.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            633 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            364 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            105 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            567 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            568 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X