• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

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 rickyblah12, Today, 01:01 PM
          0 responses
          7 views
          0 likes
          Last Post rickyblah12  
          Started by dadarara, Today, 12:18 PM
          0 responses
          7 views
          0 likes
          Last Post dadarara  
          Started by joemiller, Today, 07:33 AM
          0 responses
          8 views
          0 likes
          Last Post joemiller  
          Started by TheGameOfProbabilities, 07-18-2019, 06:56 AM
          7 responses
          38 views
          0 likes
          Last Post DaveS
          by DaveS
           
          Started by claxxical, Yesterday, 10:00 PM
          0 responses
          12 views
          0 likes
          Last Post claxxical  
          Working...
          X