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 inanazsocial, Today, 01:15 AM
    0 responses
    2 views
    0 likes
    Last Post inanazsocial  
    Started by trilliantrader, 04-18-2024, 08:16 AM
    5 responses
    22 views
    0 likes
    Last Post trilliantrader  
    Started by Davidtowleii, Today, 12:15 AM
    0 responses
    3 views
    0 likes
    Last Post Davidtowleii  
    Started by guillembm, Yesterday, 11:25 AM
    2 responses
    9 views
    0 likes
    Last Post guillembm  
    Started by junkone, 04-21-2024, 07:17 AM
    9 responses
    71 views
    0 likes
    Last Post jeronymite  
    Working...
    X