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 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