Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Unmanaged order handling

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

    Unmanaged order handling

    Hi,

    I'm thinking on switching to Unmanaged order handling in order to avoid over fills. At present I'm on managed mode with TakeNoAction activated.

    I would like to know what is the difference between Unmanaged with Ignore Overfills on and managed mode with TakeNoAction activated.

    Just to know what pieces of code I have to add when swithching. What does NT stop managing?

    #2
    Hello guillembm,

    First thing is that Unmanaged strategies do not prevent overfills. They only offer the ability to ignore them should they occur. These are ignored with that property: IgnoreOverFill.

    TakeNoAction refers to RealTimeErrorHandling, and would apply if your strategy has orders returned in a rejected state.
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Thanks,

      Another related doubt: If in the SubmitOrder() method the ocoId is blank what are the consequences? If I submit an order to close a position I have to set the same ocoId than the order submited to open it? If I open only one position per strategy it is necessary?

      Comment


        #4
        Another one...

        I want to submit an order equivalent to an ExitShortLimit(). With managed orders I don't need to especify the number of shares to buy to cover but this is a parameter that SubmitOrder() requires. If want to be sure that the whole position is closed I can use Position.Quantity? or I can set something that means exit everything?

        Comment


          #5
          OCO is an optional field. If it's blank then there will be no OCO id associated with the order.

          Yes, unmanaged has no built in position management, but you can still use Position properties like Position.Quantity. There is no "exit everything" command. Any order / position management must be custom coded.
          Ryan M.NinjaTrader Customer Service

          Comment


            #6
            So, setting the same OCOid to all the orders is the way to ensure that they are all linked. I'm wrong?

            Comment


              #7
              Orders that have an assigned OCO id will be part of a group that includes all orders with the same id. If any one of these orders is filled or cancelled, then it cancels all orders matching the OCO id.

              You should practice OCO on Superdom first so you know how it works before using it in an unmanaged strategy. Right click on Superdom > Check OCO order. Any orders placed with this flag will have the same OCO id. You can toggle the OCO setting to have it create new groups with different IDs.
              Last edited by NinjaTrader_RyanM1; 09-29-2011, 02:04 PM.
              Ryan M.NinjaTrader Customer Service

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by argusthome, 03-08-2026, 10:06 AM
              0 responses
              71 views
              0 likes
              Last Post argusthome  
              Started by NabilKhattabi, 03-06-2026, 11:18 AM
              0 responses
              43 views
              0 likes
              Last Post NabilKhattabi  
              Started by Deep42, 03-06-2026, 12:28 AM
              0 responses
              25 views
              0 likes
              Last Post Deep42
              by Deep42
               
              Started by TheRealMorford, 03-05-2026, 06:15 PM
              0 responses
              28 views
              0 likes
              Last Post TheRealMorford  
              Started by Mindset, 02-28-2026, 06:16 AM
              0 responses
              56 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Working...
              X