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

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 bmartz, 03-12-2024, 06:12 AM
            5 responses
            32 views
            0 likes
            Last Post NinjaTrader_Zachary  
            Started by Aviram Y, Today, 05:29 AM
            4 responses
            12 views
            0 likes
            Last Post Aviram Y  
            Started by algospoke, 04-17-2024, 06:40 PM
            3 responses
            28 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Started by gentlebenthebear, Today, 01:30 AM
            1 response
            8 views
            0 likes
            Last Post NinjaTrader_Jesse  
            Started by cls71, Today, 04:45 AM
            1 response
            7 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Working...
            X