Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Grouping Strategies to a Master Strategy

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

    Grouping Strategies to a Master Strategy

    Hi,

    I Build a strategy that can run on many instruments(~50). I want to be able to run all the strategies together but instead of manually set them in the strategy tab I was thinking on writing a Master strategy that take as an input the list of strategies and create new strategy instance for each instrument.
    For example:
    Code:
    List<MyStrategy> MasterStrategy = new List<MyStrategy>();
    ...
    foreach (string str in Symboles)
                    MasterStrategy.Add(new MyStrategy(str));
    Something like that. Of course I need also to pass the Base but this is the general concept I want to achive.
    Is it possible design?
    Is there sample codes that were tested for doing such a task?

    Thanks in advance for any assistance!

    #2
    Hello,

    Thanks for the forum post.

    Unfortunately this design concept is not supported and I do not have any samples or advice on this type of setup.

    However what I might recommend is that when customers would like to do this they have had success doing a multi time frame script and adding each instrument a multi series and then you can run the strategy on each series inside the one strategy by filtering barsinprogress.

    Let me know if I can be of further assistance.
    Last edited by NinjaTrader_Brett; 12-29-2011, 07:42 AM.
    BrettNinjaTrader Product Management

    Comment


      #3
      OK.
      Just to be clear what is not supported is initiating a strategy instance?This is not possible, right?
      Thanks!

      Comment


        #4
        Correct. It may or may not be possible. However it is not tested and I have no documentation or support I could provide on it if it was to not work.

        -Brett
        BrettNinjaTrader Product Management

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        647 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        368 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        108 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        571 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        573 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X