Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Stop Limit Orders Keep Being Rejected on Live Connection

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

    Stop Limit Orders Keep Being Rejected on Live Connection

    Hi all,

    I have a live NT account connected to the live data feed (CMEGROUP_TOP). One of my automated strategies frequently misses trades, throws the below error and disables itself. The entry trigger is to place buy/sell stop limit orders at the close of the current bar +/- 2 * TickSize to give it some buffer, but still getting these rejections.

    Talked to some other strategy developer buddies of mine and they recommend using the unmanaged approach and re-submitting the order after rejection.

    Is this the only way to get around this? Even if I could just reduce the frequency of the error, that would help a lot.

    I've attached an image of how we are currently submitting the orders, as well as the rejection itself. Any help would be appreciated! Click image for larger version

Name:	Screenshot 2023-12-18 at 9.59.27 AM.png
Views:	95
Size:	317.0 KB
ID:	1282588
    jaybedreamin
    NinjaTrader Ecosystem Vendor - Zion Trading Algos

    #2
    Hello jaybedreamin,

    Thank you for your post.

    Other than the unmanaged approach, there are a couple of options you could use to try and prevent this error or catch the rejections and re-submit orders. One option would be to use wider stops, as 2 ticks is a pretty small distance, and in moments of high volatility or a fast-moving market, the price could change more than 2 ticks from the time the order is submitted to the time that it is received at the broker/exchange for approval. Otherwise, you could program some custom RealtimeErrorHandling logic to catch when these types of rejections occur and react accordingly. For more information:


    The default behavior is StopCancelClose which stops the strategy, cancels any remaining working orders, and attempts to close any open strategy positions. You could instead use StopCancelCloseIgnoreRejects or IgnoreAllErrors so that the strategy won't be disabled when an order is rejected (or when errors are thrown). This would require you to program your own rejection handling, such as the example on that help guide page that catches if the stopLossOrder has an order state of OrderState.Rejected.

    Please let us know if we may be of further assistance.

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by NullPointStrategies, Today, 05:17 AM
    0 responses
    53 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    130 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    70 views
    0 likes
    Last Post NabilKhattabi  
    Started by Deep42, 03-06-2026, 12:28 AM
    0 responses
    44 views
    0 likes
    Last Post Deep42
    by Deep42
     
    Started by TheRealMorford, 03-05-2026, 06:15 PM
    0 responses
    49 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X