Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Compound Order is in a State that prohibits modification

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

    Compound Order is in a State that prohibits modification

    I wrote a small strategy to try and understand how OCO Orders are handled on a CQG Live Account.

    The strategy has two buttons:
    - First button enters long at market and places a tight stop and target with OCO
    - Second button submits a market sell order with the same OCO ID

    After both the stop and target are in a working state, the next call to OnOrderUpdate will trigger an exit at the market (trying to simulate an in-flight order being placed while the stop and target are being filled).

    If I click the "long" button and then the "exit" button, the Market order to sell is filled, and CQG correctly cancels the working Stop and Target orders. I can see from the Trace file that the exit order is "Filled" and that the Stop and Target order both have state "Cancelled" as expected.

    However something weird then happens, Ninjatrader attempts to make a modification to one of the orders and CQG throws an error "Compound Order is in a state that prohibits modification"



    Attached Files

    #2
    Hello kevinenergy,
    Thanks for your post.

    I am not familiar with this specific error message, but I would imagine that a compound order is referring to the OCO group. I also did not see the same behavior when I tested your strategy on my end (After removing the custom libraries.)

    Do you see the same issue if you do not include those libraries?

    What specific steps do you believe I can take to reproduce this on my end?
    Josh G.NinjaTrader Customer Service

    Comment


      #3
      Hey Josh, apologies for the stray using-declarations, I thought I'd stripped out all my extra code. Did you test it on a Live CQG account? It doesn't happen on the Sim account.

      I get the error if I press the "long" button and then press the "exit" button.

      Comment


        #4
        kevinenergy,

        I just tried it on a live CQG account and I'm not getting the error.

        What version of NinjaTrader 8 are you using?
        Josh G.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Today, 05:17 AM
        0 responses
        44 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        124 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        65 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        42 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        46 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X