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 charlesugo_1, 05-26-2026, 05:03 PM
        0 responses
        65 views
        0 likes
        Last Post charlesugo_1  
        Started by DannyP96, 05-18-2026, 02:38 PM
        1 response
        149 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 05-11-2026, 05:56 AM
        0 responses
        162 views
        0 likes
        Last Post CarlTrading  
        Started by CarlTrading, 05-10-2026, 08:12 PM
        0 responses
        99 views
        0 likes
        Last Post CarlTrading  
        Started by Hwop38, 05-04-2026, 07:02 PM
        0 responses
        286 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Working...
        X