• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How to backtest multiple strategies elegantly?

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

    How to backtest multiple strategies elegantly?

    Hi,

    I have 3 strategies that use the same main instrument. I want to backtest them all together to see how they perform jointly. They trade at different periods of the day and use different conditions and additional instruments to enter and exit.

    To keep my code clear, I prefer to keep 3 different classes (and 3 files)

    I could group them into a new strategy but I'd have to copy paste the code of each strategy.

    Is there a way to make it more efficiently? My guess would be to create a new strategy that imports all the other ones but I can't see precisely how to do it.

    Thanks


    #2
    Hello Vincere,

    There is not a way to automatically backtest multiple strategies at the same time. Each backtest would need to be started manually.

    I will submit a feature request on your behalf for the NinjaTrader Development to consider allowing a way to automate backtesting with multiple different strategies simultaneously.

    Once I have a tracking ID for this request I will post in this thread for future reference.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      I'm interested in this too! I've been thinking about how to do this for the past couple weeks, Vincere read my mind.

      Comment


        #4
        Not exactly what you looking for but you could move your signal logic to three different indicators. Then add all the necessary data series to one strategy and and call each indicator(signal logic) from that one strategy using the correct BarsInProgress and enter the market using the correct BarsInProgress for that logic.

        Comment


          #5
          Hello Vincere,

          I've received tracking ID #SFT-2193 for this request to automate backtesting with multiple strategies.

          avy_says I have submitted your vote as well.

          Please note it is up to the NinjaTrader Development to decide if or when any request will be implemented.

          We appreciate the feedback on this.
          Chelsea B.NinjaTrader Customer Service

          Comment


            #6
            I am also interested in having the ability to batch process optimizations.

            Comment


              #7
              Hello cupir2,

              I've added your vote to SFT-2193.

              Thanks for your input.
              Chelsea B.NinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by jjnc2006, Today, 07:36 PM
              0 responses
              5 views
              0 likes
              Last Post jjnc2006  
              Started by futurenick, Today, 06:26 AM
              1 response
              11 views
              0 likes
              Last Post nkhoi
              by nkhoi
               
              Started by NinjaCustomer, Today, 12:29 PM
              1 response
              9 views
              0 likes
              Last Post NinjaTrader_ShawnB  
              Started by Steve L, Today, 11:32 AM
              0 responses
              7 views
              0 likes
              Last Post Steve L
              by Steve L
               
              Started by prabbala, Today, 10:41 AM
              0 responses
              4 views
              0 likes
              Last Post prabbala  
              Working...
              X