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

managing order exit with 2 different strats

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

    managing order exit with 2 different strats

    I am runing two strategies on the same instrument. On theory, they never trigger orders simultaneously since they use different levels for the same parameters.
    However it could be that on practise due to severe price movements one strat open an oerder before the other strat closes yours.
    My question is, Can strat 1 recognizes strat 1 order by its name?
    I mean, supposing strat1 enter an order ==> EnterShort(0,100,"strat1Short"). Will strat 2 ExitShort("exitStrat1", "strat1Short") be complete??

    #2
    Hello dafonseca,

    Thank you for writing in.

    NinjaScript strategies do not interact with each other. If strat2 has not submitted a short order with the signal name of strat1Short, then your ExitShort() method call will be ignored as the position doesn't exist.
    Zachary G.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Waxavi, Today, 02:00 AM
    0 responses
    2 views
    0 likes
    Last Post Waxavi
    by Waxavi
     
    Started by elirion, Today, 01:36 AM
    0 responses
    4 views
    0 likes
    Last Post elirion
    by elirion
     
    Started by gentlebenthebear, Today, 01:30 AM
    0 responses
    4 views
    0 likes
    Last Post gentlebenthebear  
    Started by samish18, Yesterday, 08:31 AM
    2 responses
    9 views
    0 likes
    Last Post elirion
    by elirion
     
    Started by Mestor, 03-10-2023, 01:50 AM
    16 responses
    391 views
    0 likes
    Last Post z.franck  
    Working...
    X