• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ChangeOrder comes back rejected?

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

    ChangeOrder comes back rejected?

    If I send a ChangeOrder to an iOrder that has just filled at the broker/exchange (and before I've received confirmation of the fill), will it come back to me as OrderState.Rejected?



    Thanks

    #2
    Hello,
    As the order was filled nothing would occur as the IOrder should be set to null once fille.In the rare condition that the ChangeOrder would go through I would not expect a rejection to occur. In this case nothing would occur though as the order has filled and would be set to null.
    If we can be of any other assistance please let me know.
    Cody B.NinjaTrader Customer Service

    Comment


      #3
      Thanks for your response.

      So if a broker/exchange receives this ChangeOrder from NT, and the order no longer exists because it was filled a microsecond prior. They just ignore the ChangeOrder?

      Thanks again.

      Comment


        #4
        Hello,
        In most cases they would not receive the ChangeOrder request. In a very rare case that it did your broker would either ignore it or send a message. You may be able to contact your Broker and get more information on how they would handle this rare situation.
        If we can be of any other assistance please let us know.
        Cody B.NinjaTrader Customer Service

        Comment


          #5
          Thanks again.

          Sounds like the best way to deal with this is to not even use ChangeOrders. At least with a cancel and re-submit you can get confirmations (or rejections) of everything and deal with them appropriately.

          Comment


            #6
            Hello,
            You are still going to see the updates occur in OnExecutionUpdate and OnOrderUpdate properly. You would still get the notification that the order had filled. You would not receive anything on the ChangeOrder because it will know of the fill and thus will do nothing.
            If we can be of any other assistance please let us know.
            Cody B.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by forrestang, Yesterday, 11:39 PM
            0 responses
            3 views
            0 likes
            Last Post forrestang  
            Started by luxurious_04, Yesterday, 08:08 PM
            1 response
            9 views
            0 likes
            Last Post NinjaTrader_EricB  
            Started by martyn73, Yesterday, 03:08 PM
            1 response
            10 views
            0 likes
            Last Post NinjaTrader_ChrisL  
            Started by raffu, Yesterday, 01:16 PM
            2 responses
            8 views
            0 likes
            Last Post raffu
            by raffu
             
            Started by fx.practic, Yesterday, 01:04 PM
            2 responses
            8 views
            0 likes
            Last Post fx.practic  
            Working...
            X