Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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
    Chris L.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by algospoke, Yesterday, 06:40 PM
    2 responses
    19 views
    0 likes
    Last Post algospoke  
    Started by ghoul, Today, 06:02 PM
    3 responses
    14 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by jeronymite, 04-12-2024, 04:26 PM
    3 responses
    45 views
    0 likes
    Last Post jeronymite  
    Started by Barry Milan, Yesterday, 10:35 PM
    7 responses
    20 views
    0 likes
    Last Post NinjaTrader_Manfred  
    Started by AttiM, 02-14-2024, 05:20 PM
    10 responses
    180 views
    0 likes
    Last Post jeronymite  
    Working...
    X