Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Question about Reference Sample about OnExection method

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

    Question about Reference Sample about OnExection method

    Hello,

    I looked at the Reference Sample about using OnOrderUpdate and OnExecution method posted here http://www.ninjatrader-support2.com/...ead.php?t=7499 and I have the following question.

    When your stop loss or profit target is executed you don't cancel the remaining closing order, you just assign NULLs to both orders. And I don't see an OCO field when you submitted those orders. Don't you need to cancel the remaining order?

    #2
    Hi GorSvet, no - since if you use SetStopLoss() and SetProfitTarget() in tandem they will be automatically submitted as OCO orders. Please see also this link - http://www.ninjatrader-support.com/H...tStopLoss.html

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CaptainJack, 05-29-2026, 05:09 AM
    0 responses
    263 views
    0 likes
    Last Post CaptainJack  
    Started by CaptainJack, 05-29-2026, 12:02 AM
    0 responses
    168 views
    0 likes
    Last Post CaptainJack  
    Started by charlesugo_1, 05-26-2026, 05:03 PM
    0 responses
    170 views
    1 like
    Last Post charlesugo_1  
    Started by DannyP96, 05-18-2026, 02:38 PM
    1 response
    257 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 05-11-2026, 05:56 AM
    0 responses
    209 views
    0 likes
    Last Post CarlTrading  
    Working...
    X