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