Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

OCO (Unmanaged) expected behavior

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

    OCO (Unmanaged) expected behavior

    Can you tell me if when using OCO (unmanaged programming) and I have 4 targets and 1 stop. Let's say:
    profitTarget4 -> qty 1 -> $2303 -> OCO is "OCOEntry1"
    profitTarget3 -> qty 1 -> $2302 -> OCO is "OCOEntry1"
    profitTarget2 -> qty 1 -> $2301 -> OCO is "OCOEntry1"
    profitTarget1 -> qty 1 -> $2300 -> OCO is "OCOEntry1"
    stopLoss1 -> qty 4 -> $2097 -> OCO is "OCOEntry1"

    if price hits profitTarget1 what is the expected behavior?
    a) Are all remaining orders canceled?
    b) other profit targets remain intact, but stopLoss1 qty is adjusted to 3

    if expected behavior is a) does this mean I need to put 1 stop order per target order with individual OCO string?

    Something like this:
    profitTarget4 -> qty 1 -> $2303 -> OCO is "OCOEntry1-4"
    profitTarget3 -> qty 1 -> $2302 -> OCO is "OCOEntry1-3"
    profitTarget2 -> qty 1 -> $2301 -> OCO is "OCOEntry1-2"
    profitTarget1 -> qty 1 -> $2300 -> OCO is "OCOEntry1-1"
    stopLoss4 -> qty 1 -> $2097 -> OCO is "OCOEntry1-4"
    stopLoss3 -> qty 1 -> $2097 -> OCO is "OCOEntry1-3"
    stopLoss2 -> qty 1 -> $2097 -> OCO is "OCOEntry1-2"
    stopLoss1 -> qty 1 -> $2097 -> OCO is "OCOEntry1-1"

    Thanks,

    Julio
    Last edited by jortuzar; 05-30-2017, 08:50 AM.

    #2
    jortuzar, thank you for posting.

    To answer your first question, if any orders assigned with the same OCO ID will cancel if an order is filled, so A. For the orders you reference that have the OCO ID OCOEntry1, all orders with this OCO ID will cancel if profitTarget1 is filled or if any other order is filled instead.

    To answer your second question, yes, you will need to reference different OCO IDs for the corresponding orders you would like canceled. Your example is perfect.

    If questions come up or if we may be of any further assistance, please let us know.
    Riley S.NinjaTrader Customer Service

    Comment


      #3
      Thanks for your prompt response.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by vrewoises, Today, 04:31 AM
      0 responses
      4 views
      0 likes
      Last Post vrewoises  
      Started by butt_toast, Yesterday, 09:47 PM
      1 response
      5 views
      0 likes
      Last Post Leeroy_Jenkins  
      Started by vrewoises, Today, 03:33 AM
      0 responses
      4 views
      0 likes
      Last Post vrewoises  
      Started by devonburto, Today, 03:11 AM
      0 responses
      1 view
      0 likes
      Last Post devonburto  
      Started by ziemany, Today, 02:54 AM
      0 responses
      1 view
      0 likes
      Last Post ziemany
      by ziemany
       
      Working...
      X