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 gbajaj, Today, 03:35 PM
      2 responses
      7 views
      0 likes
      Last Post gbajaj
      by gbajaj
       
      Started by space_trader, Today, 03:19 PM
      2 responses
      8 views
      0 likes
      Last Post space_trader  
      Started by max1ci6, Today, 02:02 AM
      4 responses
      27 views
      0 likes
      Last Post joromero  
      Started by Johnny, Today, 02:38 PM
      1 response
      8 views
      0 likes
      Last Post NinjaTrader_Tyler  
      Started by M_ichel, Today, 02:26 PM
      1 response
      5 views
      0 likes
      Last Post NinjaTrader_Tyler  
      Working...
      X