• 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

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 sandman, Today, 02:32 PM
        0 responses
        2 views
        0 likes
        Last Post sandman
        by sandman
         
        Started by ksarin, Today, 12:39 PM
        3 responses
        12 views
        0 likes
        Last Post NinjaTrader_PatrickG  
        Started by ttodua, Today, 12:03 PM
        1 response
        6 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by tomtr27, Today, 11:35 AM
        1 response
        10 views
        0 likes
        Last Post NinjaTrader_ChelseaB  
        Started by Uregon, Today, 07:30 AM
        2 responses
        14 views
        0 likes
        Last Post bltdavid  
        Working...
        X