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 SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    50 views
    0 likes
    Last Post SalmaTrader  
    Started by CarlTrading, 07-05-2026, 01:16 PM
    0 responses
    22 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 06-17-2026, 10:32 AM
    0 responses
    16 views
    0 likes
    Last Post CaptainJack  
    Started by kinfxhk, 06-17-2026, 04:15 AM
    0 responses
    22 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 06-17-2026, 04:06 AM
    0 responses
    23 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Working...
    X