Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OCO and Unmanaged

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

    OCO and Unmanaged

    Hi there

    I am talking with my programmer about getting a strategy written and we are discussing OCO and unmanaged approach. I know that it is not possible to do that in the standard managed approach, but can you tell me exactly why that is? What is it about Managed that doesn't allow for OCO orders?

    Thank you very much for your help

    #2
    Hello jg123,

    The managed orders were not designed to have this functionality. OCO is not directly available in managed but the concept can be programmed into the strategy using OnExecution() and OnOrderUpdate() to get the fills and then cancel any other working orders necessary.

    A combination of these two reference samples would work for creating OCO functionality in managed approach -
    http://www.ninjatrader.com/support/f...ead.php?t=7499
    http://www.ninjatrader.com/support/f...ad.php?t=18890


    Let me know if I can be of further assistance.
    Cal H.NinjaTrader Customer Service

    Comment


      #3
      Hi Cal

      Sorry, I definitely didn't write the question well enough as I didn't define better the various elements of the OCO order.

      Basically, setting an order to go long and an order to go short where one of the orders will trigger and fill when the price moves outside of a range. At the filling of one of the orders (Long for example), then it would cancel the order to go short.

      From what I gather, this is something that is not allowed based on the internal handling rules. Am I understanding that correctly?

      Comment


        #4
        Jg123,

        Correct, this is not possible with the managed approach. You would need to use the Unmanaged approach to use this functionality.

        Let me know if I can be of further assistance.
        Cal H.NinjaTrader Customer Service

        Comment


          #5
          Thanks Cal

          Could you let me know what is the intention behind not allowing this under the normal order handling rules? I wonder if that would be important information for my programmer as she would then be putting this strategy together in the Unmanaged mode.

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by KarstenKafl, Today, 05:24 AM
          1 response
          8 views
          0 likes
          Last Post NinjaTrader_Jim  
          Started by JesusSanchez, 09-17-2020, 11:52 AM
          9 responses
          75 views
          0 likes
          Last Post NinjaTrader_Jim  
          Started by Kal1221, Today, 08:40 AM
          1 response
          15 views
          0 likes
          Last Post NinjaTrader_Jesse  
          Started by augustfay, Today, 08:27 AM
          1 response
          13 views
          0 likes
          Last Post NinjaTrader_Melissa  
          Started by youdee101, Today, 08:24 AM
          2 responses
          10 views
          0 likes
          Last Post youdee101  
          Working...
          X