Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Order Error 221732; Exchange Reject Code = 2179

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

    Order Error 221732; Exchange Reject Code = 2179

    Hello NinjaTrader:

    I have a strategy that works great 99% of the time. The strategy uses the managed order approach. I have RealTImeErrorHandling.IgnoreAllErrors. If my strategy gets an order rejection, my strategy places the order again.

    Once running, every 2 to 3 weeks I get the following exchange errors.

    Click image for larger version  Name:	Dialog1.jpg Views:	2 Size:	23.2 KB ID:	1188897Click image for larger version  Name:	Dialog2.jpg Views:	4 Size:	17.8 KB ID:	1188898Click image for larger version  Name:	Dialog3.jpg Views:	4 Size:	16.7 KB ID:	1188899

    The strategy promptly shuts off. What is this error? And in my error handling routine how can I keep the strategy running without it shutting off? Attached is the log and trace files. This error occurred on 2/6/22

    Thank you!
    Attached Files
    Last edited by NinjaTrader_Jim; 02-08-2022, 07:07 AM. Reason: Scrubbed Log and Trace Files from post. For your [privacy, please email these to [email protected]

    #2
    Hi, thanks for posting. The strategy never gets disabled according to the logs. These error windows will still show up but the strategy will not be disabled if IgnoreAllErrors is set. The first error is sent directly from the broker, so you will need to use Print() to print out the order state when this happens in order to make code that will handle this. The error codes are likely UnableToChangeOrder or ErrorCode.UnableToSubmitOrder, but it must be printed to confirm.

    Kind regards,
    -ChrisL

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    72 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    44 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    26 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    30 views
    0 likes
    Last Post TheRealMorford  
    Started by Mindset, 02-28-2026, 06:16 AM
    0 responses
    61 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Working...
    X