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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    132 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    74 views
    1 like
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    117 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    112 views
    1 like
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    89 views
    0 likes
    Last Post CarlTrading  
    Working...
    X