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 Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    557 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    324 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    101 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    545 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    547 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X