• 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 (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, 07: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 GMiller64, Today, 05:56 PM
      0 responses
      1 view
      0 likes
      Last Post GMiller64  
      Started by rickyblah12, Today, 05:01 PM
      1 response
      3 views
      0 likes
      Last Post NinjaTrader_ShawnB  
      Started by jtrading82, 10-11-2019, 05:07 PM
      8 responses
      80 views
      1 like
      Last Post sledge
      by sledge
       
      Started by MARTIN MARTIN, Yesterday, 01:01 PM
      3 responses
      41 views
      0 likes
      Last Post MARTIN MARTIN  
      Started by NickyD, Today, 11:42 AM
      1 response
      10 views
      0 likes
      Last Post NinjaTrader_Jim  
      Working...
      X