Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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 frankthearm, Yesterday, 09:08 AM
          14 responses
          47 views
          0 likes
          Last Post NinjaTrader_Clayton  
          Started by gentlebenthebear, Today, 01:30 AM
          2 responses
          13 views
          0 likes
          Last Post gentlebenthebear  
          Started by Kaledus, Today, 01:29 PM
          2 responses
          8 views
          0 likes
          Last Post Kaledus
          by Kaledus
           
          Started by PaulMohn, Today, 12:36 PM
          2 responses
          16 views
          0 likes
          Last Post PaulMohn  
          Started by Conceptzx, 10-11-2022, 06:38 AM
          2 responses
          56 views
          0 likes
          Last Post PhillT
          by PhillT
           
          Working...
          X