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 r68cervera, Today, 05:29 AM
    0 responses
    3 views
    0 likes
    Last Post r68cervera  
    Started by geddyisodin, Today, 05:20 AM
    0 responses
    6 views
    0 likes
    Last Post geddyisodin  
    Started by JonesJoker, 04-22-2024, 12:23 PM
    6 responses
    35 views
    0 likes
    Last Post JonesJoker  
    Started by GussJ, 03-04-2020, 03:11 PM
    12 responses
    3,241 views
    0 likes
    Last Post Leafcutter  
    Started by AveryFlynn, Today, 04:57 AM
    0 responses
    7 views
    0 likes
    Last Post AveryFlynn  
    Working...
    X