Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Id for UnManaged Oder

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

    Id for UnManaged Oder

    Hello,

    I am using the UnManaged approach to create an order.

    Can you advise if its possible to create the order with an id that includes the Instrument name?

    Currently if I run the strategy on a number of instruments and select "Close" on one in particular, then they are closed in all the instruments

    #2
    cocopod, you mean when you're using the Close button from the SuperDOM or ChartTrader?

    Comment


      #3
      And within NinjaScript

      Hi there,

      Yes... But it also occurs if the script closes the order within one instrument

      C

      Comment


        #4
        Then I would check into the OCO id assigned, if that's the same across your orders > I would expect it.
        Last edited by NinjaTrader_Bertrand; 11-13-2014, 07:11 AM.

        Comment


          #5
          This OCO order

          In SubmitOrder there is a parameter "ocoID". Am I correct in assuming that this is how we give the order a unique id?

          If so Can I make it so that the id dynamically becomes the name of the instrument?

          If then I am further adjusting the Pending position with "ChangeOrder" it would appear that the first parameter can refer to the same one used in SubmitOrder? Is this correct?

          Comment


            #6
            The OCO id could be used to link orders together, for the naming the signalName would be what you seek. Those are both strings so the Instrument name could be appended.

            To adjust the order you would need to assign an IOrder object to it in your Submit call and then use this very IOrder object in the ChangeOrder() call.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by Geovanny Suaza, 02-11-2026, 06:32 PM
            0 responses
            558 views
            0 likes
            Last Post Geovanny Suaza  
            Started by Geovanny Suaza, 02-11-2026, 05:51 PM
            0 responses
            324 views
            1 like
            Last Post Geovanny Suaza  
            Started by Mindset, 02-09-2026, 11:44 AM
            0 responses
            101 views
            0 likes
            Last Post Mindset
            by Mindset
             
            Started by Geovanny Suaza, 02-02-2026, 12:30 PM
            0 responses
            545 views
            1 like
            Last Post Geovanny Suaza  
            Started by RFrosty, 01-28-2026, 06:49 PM
            0 responses
            547 views
            1 like
            Last Post RFrosty
            by RFrosty
             
            Working...
            X