• 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

unable to change the order during real time

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

    unable to change the order during real time

    Dear Sir.

    During real time the strategy generates the following message in log

    The strategy ...: submitted an order that generated the following error: "Unable to change the order during real time". Strategy has sent cancel request attempted to close the positioin and terminate itself.

    What is the error?

    best regards

    #2
    Hello memonic,

    Can you please send me your log and trace files, so I can investigate. Log and trace files can be found at the locations below.

    Windows start menu-->Documents-->NinjaTrader 8-->log

    Windows start menu-->Documents-->NinjaTrader 8-->trace

    Right click the log and trace folder and select Send to-->Compressed (zipped) folder. Subsequently attach both .zip files in your email and send it to platformsupport[at]ninjatrader[dot]com. Put 'Att Jason, unable to change the order during real time' in the subject header.
    JasonNinjaTrader Customer Service

    Comment


      #3
      Hello, I am getting the same error. May I submit my log and trace files also?

      Comment


        #4
        Yes, please feel free to send the error along with your log and trace files to PlatformSupport[AT]NinjaTrader[DOT]Com along with your log and trace files and a link to this forum post.




        Please follow the steps below to manually attach your log and trace files to your email so we may investigate this matter further.
        *
        Open your NinjaTrader folder under Documents.
        *
        Right click on the 'log' and 'trace' folders and select Send To> Compressed (zipped) Folder.
        *
        Send the 2 compressed folders as attachments to this email.
        *
        Once complete, you can delete these compressed folders.
        Eric B.NinjaTrader Customer Service

        Comment


          #5
          Hello, after some review of the strategy, i have found that the problem is a SETParabolicStop.
          the stop is OnStateChange and State.Configure
          What could be the error

          Comment


            #6
            Hello memonic,

            Thanks for your question.

            SetParabolicStop will create stop levels that will move close and close to the market price, provided the market price is moving in a steady direction. As the movement of the stop is parabolic, the distance it moves increases with each update. This can cause the calculated level to be placed on the other side of the market depending on the movement of the market.

            As this can be a real world possibility, I may suggest to add code to trap rejections and failures to change orders so you can take a different action when the order is error is seen. This involves using Order objects, OnOrderUpdate, and RealtimeErrorHandling. I have included documentation items below and an example strategy that demonstrates how Order objects can be used.

            RealtimeErrorHandling - https://ninjatrader.com/support/help...orhandling.htm

            OnOrderUpdate - https://ninjatrader.com/support/help...rderupdate.htm

            SampleOnOrderUpdate - https://ninjatrader.com/support/help...and_onexec.htm

            Please let me know if there is anything else I can do to help.
            JimNinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by priceisking, Today, 01:15 PM
            1 response
            8 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Started by 2sureshk, Today, 07:29 AM
            1 response
            16 views
            0 likes
            Last Post NinjaTrader_Kate  
            Started by frayrengytrader, Today, 10:58 AM
            1 response
            8 views
            0 likes
            Last Post NinjaTrader_SergeyS  
            Started by levikNT, Today, 11:28 AM
            3 responses
            27 views
            0 likes
            Last Post NinjaTrader_ChrisL  
            Started by ballboy11, Today, 09:35 AM
            1 response
            9 views
            0 likes
            Last Post NinjaTrader_ChelseaB  
            Working...
            X