Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

attached/oco orders when using unmanaged order managemen

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

    attached/oco orders when using unmanaged order managemen

    hi -

    context of question is NT8 Add-On.
    I am using the CreateOrder and SubmitOrder to manage place entry orders with oco's

    Say for example I want to submit a stop entry order + oco.
    Currently I am submitting the entry order.
    When the entry order gets filled, I create and submit the oco

    So my first question is if it is possible to submit the oco and the entry order together somehow? Obviously, for this to work, I would expect that the oco would not be active till the parent fills.

    hope this makes sense.

    #2
    Hello,

    Thank you for the question.

    I wanted to confirm, you are asking to submit an entry and target and stop all in once shot? or More or less like how the SetStopLoss or SetProfitTarget work with the managed approach or are set and then become active upon fill?

    If so, I believe what you are currently doing would be the correct approach as the Submit just Submits the orders created by CreateOrder. It does take an Array so multiple entries could be submitted in a single line but you would still then need to submit the orders after the fill with the associated OCO etc.

    I look forward to being of further assistance.

    Comment


      #3
      Originally posted by NinjaTrader_Jesse View Post
      Hello,
      ...More or less like how the SetStopLoss or SetProfitTarget work with the managed approach or are set and then become active upon fill?
      More or less that.

      So from your answer, when using unmanaged, I should be submitting the OCO's after the parent gets filled. Otherwise, the OCO orders become active immediately when they are submitted and we don't want that.


      So then I have another question which is a follow up to the last one:
      Say I call CreateOrder for a Limit order. I do not call Submit with this order yet. I then call Change to modify the order price. After this I call Submit. I am getting an error when doing this and was not sure i this is a bug or by design. Meaning, it looks like I can only Change/modify orders that have been submitted.

      Comment


        #4
        Hello,

        Thank you for the questions.

        You are correct, you would not want them to submit all at once as the target and stop would have no entry associated and would not be the order of actions you are trying to get.

        Regarding the second question, I believe you are correct on this as well, you are trying to modify a non existing order because it currently only exists in the context of your variable.

        CreateOrder is a return method meaning it creates an Order for you based on the entered parameters, that order is not yet submitted or being tracked. Once you submit it you would be able to manage the order using the methods to do so.

        I look forward to being of further assistance.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        670 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        379 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        111 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        575 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        582 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X