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 zstheorist, Today, 07:52 PM
    0 responses
    3 views
    0 likes
    Last Post zstheorist  
    Started by pmachiraju, 11-01-2023, 04:46 AM
    8 responses
    149 views
    0 likes
    Last Post rehmans
    by rehmans
     
    Started by mattbsea, Today, 05:44 PM
    0 responses
    5 views
    0 likes
    Last Post mattbsea  
    Started by RideMe, 04-07-2024, 04:54 PM
    6 responses
    33 views
    0 likes
    Last Post RideMe
    by RideMe
     
    Started by tkaboris, Today, 05:13 PM
    0 responses
    5 views
    0 likes
    Last Post tkaboris  
    Working...
    X