• 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

error message on change order

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

    error message on change order

    Hello. I have code that submits a change order to update stops based on certain conditions. I recently received an error that said something to the effect "cannot submit change order, values already match". what does that mean exactly? in this case, the new price that was being submitted for the order change did in fact match the prior price, though that was a bizarre coincidence. is the fact that the prices match what the error is referring to, or is there something else going on? any ideas how to address this?
    thanks,
    Colin

    #2
    Hello stewarco,
    Thanks for your post.
    • What version of NinjaTrader are you using? Please provide the entire version number. This can be found under Help -> About (The most current version is 8.0.14.2)
    • Who are you connected to? This is displayed in green on lower left corner of the Control Center window.
    • Who is your broker?
    • What instrument (and expiry if applicable) have you selected? For example, ES 09-18, AAPL, EURUSD, etc.
    • What type of order was this? (Limit, Market, Stop,etc.)
    JoshNinjaTrader Customer Service

    Comment


      #3
      info

      Hi Josh.
      - Using most current version
      - I'm connected to IB and Ninjabroker
      - Orders are sent to my Ninjabroker account
      - Instrument is ES 09-18
      - This was a Stop (market) order, for which I was submitting a Change for the Stop price, though as I mentioned the new price happened to be the same as the prior price, if that matters.

      Comment


        #4
        I'd like to take a look at your log and trace files when this occurred.
        Just reference this forum post with RE: Josh in the subject.
        You can include your log and trace files by going to the Control Center-> Help-> Mail to Platform Support

        Ensuring 'Log and Trace Files' is checked will include these files. This is checked by default.
        JoshNinjaTrader Customer Service

        Comment


          #5
          I checked out your files and I see the error:
          'Cannot change order '1936' because current order values already match.'
          which simply means that a change was submitted, but no actual changes were made. You may ignore this error.
          JoshNinjaTrader Customer Service

          Comment


            #6
            one more thing

            o.k. I made a minor change so that this can never occur, but when the Error did occur it shut down my strategy. is there a setting somewhere such that this wouldn't happen? are you also seeing the part where it stops the strategy and cancels all the outstanding related orders?

            Comment


              #7
              What are you setting for RealtimeErrorHandling in your strategy?

              Help Guide - RealTimeErrorHandling
              JoshNinjaTrader Customer Service

              Comment


                #8
                thanks

                ok looks like I've got the errorhandling set to cancel/close. need to decide if i'm set up to change that or not.
                thanks

                Comment


                  #9
                  I have the same error. the problem is that ninjatrader hangs when we get this error a few times. when there's a sudden movement of price the strategy causes this error to show up. eventhough i have set the RealTimeErrorHandling to ignore the error (that works), ninjatrader hangs after receiving this error and popping a mesage box a few times. Lost a lot of money because of this...

                  Comment


                    #10
                    Hello madankumars,

                    I would recommend that you change the logic of the script to not call change order if the new price is equal to the stop price of the working order. This would prevent the error from appearing.
                    Chelsea B.NinjaTrader Customer Service

                    Comment

                    Latest Posts

                    Collapse

                    Topics Statistics Last Post
                    Started by Jschmelz, Yesterday, 04:45 PM
                    1 response
                    17 views
                    0 likes
                    Last Post NinjaTrader_Marco  
                    Started by sisenberg, Today, 07:29 AM
                    1 response
                    8 views
                    0 likes
                    Last Post sisenberg  
                    Started by Oceans, Today, 02:22 AM
                    2 responses
                    25 views
                    0 likes
                    Last Post Oceans
                    by Oceans
                     
                    Started by sisenberg, Yesterday, 08:06 PM
                    1 response
                    24 views
                    0 likes
                    Last Post sisenberg  
                    Started by PLeary, Today, 06:25 AM
                    1 response
                    18 views
                    0 likes
                    Last Post NinjaTrader_SergeyS  
                    Working...
                    X