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 AidanLawrence, Today, 10:03 PM
      0 responses
      1 view
      0 likes
      Last Post AidanLawrence  
      Started by butt_toast, Today, 09:47 PM
      0 responses
      1 view
      0 likes
      Last Post butt_toast  
      Started by GaryOz, Today, 06:54 PM
      0 responses
      3 views
      0 likes
      Last Post GaryOz
      by GaryOz
       
      Started by 2inthebush, Today, 06:27 PM
      0 responses
      19 views
      0 likes
      Last Post 2inthebush  
      Started by harr5754, Today, 03:08 PM
      2 responses
      9 views
      0 likes
      Last Post harr5754  
      Working...
      X