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 tkaboris, Today, 05:13 PM
    0 responses
    2 views
    0 likes
    Last Post tkaboris  
    Started by GussJ, 03-04-2020, 03:11 PM
    16 responses
    3,281 views
    0 likes
    Last Post Leafcutter  
    Started by WHICKED, Today, 12:45 PM
    2 responses
    19 views
    0 likes
    Last Post WHICKED
    by WHICKED
     
    Started by Tim-c, Today, 02:10 PM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by Taddypole, Today, 02:47 PM
    0 responses
    5 views
    0 likes
    Last Post Taddypole  
    Working...
    X