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 Mindset, 04-21-2026, 06:46 AM
    0 responses
    90 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    137 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    120 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    69 views
    0 likes
    Last Post PaulMohn  
    Working...
    X