Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Multiple Strategies

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

    Multiple Strategies

    I would like to enter multiple strategies (actually, the same strategy but multiple instruments...each instrument would have different variable values).

    The strategy tends to be HIGH probabilty but infrequent number of trades through the course of a year. Therefore, my intent would be to replicate strategy for many instruments to increase occurrences.

    QUESTION: How can I provide an overriding restriction that says "ONLY ALLOW THIS ENTRY SIGNAL to ACTIVATE IF NO OTHER STRATEGIES (TRADES) ARE IN PROGRESS" however, "DON'T EXIT UNLESS THERE IS A COMPARABLE ENTRY"?I am simply trying to have only ONE trade be active at a time, therefore only ONE strategy be active at a time.

    #2
    CRCatNinja, NinjaTrader treats each strategy as an independent entity. Thus, each strategy knows absolutely nothing about other running strategies unless "told".

    Basically, this will take some coding to create a "master strategy" that knows the state of each and every slave strategy and can sent orders appropriately.

    There are a number of ways to do this, but none are copy + paste solutions. This link will take you to a post where I explain how to "share" variables between a strategy and an indicator. Your situation is virtually the same, but variables will be shared between strategies instead of indicators.

    Hopefully this will get the ball rolling, but let us know if you have any other questions.
    AustinNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    67 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    36 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    61 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    62 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    53 views
    0 likes
    Last Post CarlTrading  
    Working...
    X