Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

[Bug Report] Order OCO name keeps being reused.

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

    [Bug Report] Order OCO name keeps being reused.

    Here is how the bug plays out.

    Note: I do not reuse any order names.

    New order:

    TSLA Buy market order name TSLA123
    TSLA StopMarket order name TSLA100 with order OCO name TSLA123
    TSLA Limit order name TSLA200with order OCO name TSLA123​​

    Stop or limit order rejected because its at market price... <-------- IMPORTANT TO EXPOSE THE BUG

    New order:

    TSLA Buy market order name TSLA456
    TSLA StopMarket order name TSLA300 with order OCO name TSLA456
    TSLA Limit order name TSLA400 with order OCO name TSLA456​

    Error order OCO name TSLA123 cannot be reused

    New order:

    TSLA Buy market order name TSLA789
    TSLA StopMarket order name TSLA500 with order OCO name TSLA789
    TSLA Limit order name TSLA600 with order OCO name TSLA789

    Error order OCO name TSLA123 cannot be reused



    All my tied OCO orders work fine. This bug starts when the stop or limit order is rejected because it's at market price (or above or below depending if its a stop or limit order) .

    To recreate the bug you must set a stop or limit order with an OCO name matching a market order... the stop or limit order must be at market price to get rejected (very realistic scenario in a fast moving market)... then submit a new order for the same instrument using new order names and new matching order OCO names and you'll see it keeps using the old OCO name.

    The only way to temporarily fix it is to reset the account. I verified this behavior on two separate machines running NinjaTrader using two different ways... through a NinjaScript Strategy and through a NinjaScript AddOn.
    Last edited by defa0009; 09-20-2024, 10:11 AM.

    #2
    Hello defa0009​,

    Thank you for informing us.

    Are you using ATM strategies or automated NinjaScript strategies?

    If the latter, please reach out to our engineering team at:

    [email protected]

    as they are better equipped to troubleshoot / comfirm unwanted behaviors in that regard.


    If the former:

    For us to further investigate and confirm this defect:

    Please send in your log and trace files so that we may look more into what may be occurring.

    You can do this by going to the Control Center-> Help-> Email Support

    Make sure to categorize your request at the top.

    Ensure 'Log and Trace Files' is checked will include these files. This is checked by default.

    Thanks in advance, we look forward to helping resolve this issue for you.​
    Erick P.NinjaTrader Customer Service

    Comment


      #3
      I'm creating orders using a strategy and through an addon and see this bug from both. My price data is coming from Forex.com if that matters.
      Last edited by defa0009; 09-20-2024, 10:11 AM.

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      60 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      39 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      21 views
      0 likes
      Last Post Deep42
      by Deep42
       
      Started by TheRealMorford, 03-05-2026, 06:15 PM
      0 responses
      23 views
      0 likes
      Last Post TheRealMorford  
      Started by Mindset, 02-28-2026, 06:16 AM
      0 responses
      51 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Working...
      X