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

Rejected state handling

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

    Rejected state handling

    I would like to understand how should be handled situation
    if order-state is Rejected. So I have some questions:

    0.Need confirmation: I expect, that Rejected means: Last request with order was denied and cannot be fullfilled.
    Is it good understanding, or should I understand it somehow differently?

    There is no explanation/reason what went wrong, is it true? How should one to know, what is the cause of last rejection?


    1. Need confirmation: I expect, that Rejected order-state can be set only in these 2 scenarios:

    a) New order was submitted, but its values are invalid, so it is not accepted.
    b) Existing order was changed - but changed values are not valid, so it is not accepted.

    Is it true, that only these 2 scenarios cause Rejected state, or are there any other scenarios causing rejection?


    2. Question: Can cancelation of order cause that order gets state Rejected?
    (I mean case of overfill - where the Rejected could mean like = cancellation request could not be fullfilled, so it is "rejected", because of fill in the meantime)
    Last edited by misova; 10-02-2015, 12:36 PM.

    #2
    Hello misova,

    Thank you for your inquiry.

    To answer your questions:
    1. Yes, rejected means that something caused the order to not be fulfilled.

      If you would like to check what caused this to occur, you could use OnOrderUpdate() and check for if (order.OrderState == OrderState.Rejected).

      More information about OnOrderUpdate() can be found in the NinjaTrader help guide at this link: http://ninjatrader.com/support/helpG...rderupdate.htm

    2. There are other scenarios that can cause this rejection as well. I would suggest reading this link in the NinjaTrader help guide pertaining to IOrder objects: http://ninjatrader.com/support/helpG...t7/?iorder.htm

    3. An overfill is categorized as when an order returns a "Filled" or "PartFilled" state after the order was already marked for cancellation. So, it is possible for a rejection.


    Please, let us know if we may be of further assistance.
    Zachary G.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by fx.practic, 10-15-2013, 12:53 AM
    5 responses
    5,406 views
    0 likes
    Last Post Bidder
    by Bidder
     
    Started by Shai Samuel, 07-02-2022, 02:46 PM
    4 responses
    98 views
    0 likes
    Last Post Bidder
    by Bidder
     
    Started by DJ888, Yesterday, 10:57 PM
    0 responses
    8 views
    0 likes
    Last Post DJ888
    by DJ888
     
    Started by MacDad, 02-25-2024, 11:48 PM
    7 responses
    160 views
    0 likes
    Last Post loganjarosz123  
    Started by Belfortbucks, Yesterday, 09:29 PM
    0 responses
    9 views
    0 likes
    Last Post Belfortbucks  
    Working...
    X