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 Stanfillirenfro, Today, 07:23 AM
      9 responses
      23 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Started by George21, Today, 10:07 AM
      0 responses
      6 views
      0 likes
      Last Post George21  
      Started by DayTradingDEMON, Today, 09:28 AM
      2 responses
      18 views
      0 likes
      Last Post DayTradingDEMON  
      Started by navyguy06, Today, 09:28 AM
      1 response
      6 views
      0 likes
      Last Post NinjaTrader_Gaby  
      Started by cmtjoancolmenero, Yesterday, 03:58 PM
      8 responses
      32 views
      0 likes
      Last Post NinjaTrader_ChelseaB  
      Working...
      X