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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    41 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    20 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    28 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    45 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    37 views
    0 likes
    Last Post CarlTrading  
    Working...
    X