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

Testing and Tracking a Portfolio of Strategies

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

    Testing and Tracking a Portfolio of Strategies

    I've implemented several independent strategies in NinjaTrader.

    I'm wanting to combine strategies and run them as a portfolio of strategies. The reason for this is that I want to track the recent backtest performance for each individual strategy and then rank the strategies so that I can trade only the ones that are performing well at the moment.

    The problem I seem to have is that I want to track things like "Win Rate" from the Historical backtest for each strategy. But unless I'm actually trading that strategy in the backtest I don't have the simulated trades from which to calculate a win rate.

    It seems like what I want is a Master strategy that can instantiate and execute child strategies wherein the child strategies can each run independently, but the master can still see their independent performance metrics to decide which strategy signal to take and which to ignore. The child strategies would not actually trade live, we only need their simulated results?

    What would be the best approach in NinjaTrader to enabled something like this?
    Last edited by BarzTrading; 09-08-2018, 05:39 PM.

    #2
    Hello BarzTrading,

    I'm not aware of any way to achieve this with code. You would need to run the tests and compare the results manually.

    If they are all meant to be trading simultaneously the same instrument and same account in real-time you could likely write the logic for all of them in one strategy.
    Running multiple independent scripts at the same time is not recommended.


    I have submitted a feature request on your behalf for the ability to run a test of several strategies and combine the results.
    Once I have an ID for this I will post in this thread for future reference.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thanks for submitting my request.


      Can something like this be done in an AddOn? Can I instantiate and run Strategies independently from an AddOn? I envision something like Strategy Analyzer but with some additional ability to rollup and compare results from multiple backtests, multiple strategies, etc. This wouldn't need to run in real time and the backtests could all be run sequentially even. I just need to be able to generate a set of results every day.

      Comment


        #4
        Hello BarzTrading,

        I am not aware of any way (supported or unsupported) to enable strategies programmatically.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Hello BarzTrading,

          I have received tracking ID #SFT-1141 for your request to combine the backtest results of multiple strategies.

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

          We appreciate you taking the time to provide feedback.
          Chelsea B.NinjaTrader Customer Service

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by jeronymite, 04-12-2024, 04:26 PM
          3 responses
          44 views
          0 likes
          Last Post jeronymite  
          Started by Barry Milan, Yesterday, 10:35 PM
          7 responses
          20 views
          0 likes
          Last Post NinjaTrader_Manfred  
          Started by AttiM, 02-14-2024, 05:20 PM
          10 responses
          179 views
          0 likes
          Last Post jeronymite  
          Started by ghoul, Today, 06:02 PM
          0 responses
          9 views
          0 likes
          Last Post ghoul
          by ghoul
           
          Started by DanielSanMartin, Yesterday, 02:37 PM
          2 responses
          13 views
          0 likes
          Last Post DanielSanMartin  
          Working...
          X