Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Rejected Limit or StopMarket Orders in Fast Moving Markets

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

    Rejected Limit or StopMarket Orders in Fast Moving Markets

    Scenario:
    • Demo FXCM account (not Sim, not Live)
    • A Limit or StopMarket order is submitted at a valid price and reaches OrderState.Working
    • The order remains Working for a period of time sufficient to declare the order successfully submitted and waiting on the relevant price
    • Market is choppy and moving very quickly
    • Price moves beyond the Limit or StopMarket order price that would trigger the order, and the order is triggered
    I am seeing Limit or StopMarket orders submitted at valid prices, remaining Working for a period of time, then Rejected. Looking at the rejected order and the Ask/Bid prices at the time of rejection, the relevant Ask/Bid price is often now on the "wrong" side of the Limit or StopMarket order price.

    Could this happen if, having triggered the order, price "immediately" moves back to the "other" side of the Limit or StopMarket order price, presumably before the order is filled?

    The rejected order does not indicate that the price is invalid, as happens if submitting at an invalid price. In fact, the rejected order has no Comment or ErrorCode information to provide insight into why the order was rejected. The log and trace files do not provide any additional useful information either. The ErrorCode is actually NoError, even while orderState=Rejected!

    This does not appear to be a margin issue as I have seen specific order rejections for margin violations, so I don't think that is the case here.

    This lack of meaningful information is reflected in the unhelpful error popup, usually with a message of the general form "<Account Name>, affected Order: Buy <quantity> Limit @ <price>".

    (For what it's worth this lack of meaningful error information was some time ago brought to the attention of NinjaTrader Support separately. It is occurring on FXCM connections. NinjaTrader Support acknowledges there is corrective code that can be written to fix these types of issues, but it is yet to be implemented.)

    What might be going on that is causing these rejections?

    Thanks.
    Multi-Dimensional Managed Trading
    jeronymite
    NinjaTrader Ecosystem Vendor - Mizpah Software

    #2
    Hello jeronymite,

    "I am seeing Limit or StopMarket orders submitted at valid prices, remaining Working for a period of time, then Rejected"

    I have not observed this behavior. Are you certain that there are no change requests occuring that are being rejected?

    Have you contacted your broker to inquire why an order that was accepted changed to rejected (as this should occur)?

    Please provide debugging output of TraceOrders and printing the order object in OnOrderUpdate().
    Chelsea B.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

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