Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Can I create my own OCO orders in a strategy?

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

    Can I create my own OCO orders in a strategy?

    My current strategy submits limit orders to enter. Instead, I would like to submit an OCO with a limit and a stop, so I basically get filled for sure.

    Looking at the IOrder objects I see an Oco property listed, but don't really see how to use that property to create my own OCO's. The overloads in the various order type methods don't show and OCO parameter.

    Can you please explain how one goes about creating OCO's? A very simple example would be hugely appreciated.

    Thanks.

    #2
    Hello,

    This would require switching to the unmanaged order approach to get access to manually setting the OCO ID. You will see it is a parameter for SubmitOrder().



    -Brett
    BrettNinjaTrader Product Management

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Geovanny Suaza, 02-11-2026, 06:32 PM
    0 responses
    633 views
    0 likes
    Last Post Geovanny Suaza  
    Started by Geovanny Suaza, 02-11-2026, 05:51 PM
    0 responses
    364 views
    1 like
    Last Post Geovanny Suaza  
    Started by Mindset, 02-09-2026, 11:44 AM
    0 responses
    105 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by Geovanny Suaza, 02-02-2026, 12:30 PM
    0 responses
    567 views
    1 like
    Last Post Geovanny Suaza  
    Started by RFrosty, 01-28-2026, 06:49 PM
    0 responses
    568 views
    1 like
    Last Post RFrosty
    by RFrosty
     
    Working...
    X