Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

ERROR While running my Strategy: 'Unable to change order'.

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

    ERROR While running my Strategy: 'Unable to change order'.

    Hello there, I'm getting these 2 errors when my code runs on the chart:

    First error: strategy submitted an order that generated the following error: 'Unable to change order'. Strategy has sent a cancel requests, attempted to close the position and termites itself.

    Second error: Sim101, Stop price can't be changed above the market. Affected order: Sell 1 StopMarket.

    My code creates a trailing stop when the price goes 20 ticks in my favor. It's doing that correctly, however, when the price stops me out, I get this error message and the strategy stops. What do I do?

    Thanks,​


    #2
    Hello cajina,

    Thank you for writing in.

    CRITICAL — Although you mentioned the Sim101 account, If your inquiry involves live orders, please always reach out to your broker's Orders Desk immediately to confirm and manage your live orders and positions.


    It is typically best for us to provide an order submission analysis via email. Please send us your diagnostic files so we may further investigate what is occurring with your trailing stop. You can do this by going to the Control Center-> Help-> Email Support. Ensuring 'Log and Trace Files' is checked will include these files. This is checked by default.​

    Please be sure to include "ATTN Emily C" in the subject line and include a link to this forum thread in the body of the email. In the body, please also answer all of the following questions:
    • At approximately what time did this occur?
    • What Order ID was assigned to this order? You can check in the Executions or Orders tab of the Control Center.
    Thanks in advance; I look forward to assisting you further

    Comment


      #3
      Hey Emily, thanks for your quick replay, sorry for the dumb question, where do I get my "diagnostic files", are you going to need my code? Thanks

      Comment


        #4
        Hello cajina,

        Thank you for your reply.

        No worries, that is not a dumb question! I explained the steps to send the files - you do not need to find them yourself. If you send an email to support through the platform, there is a checkbox to include the files. Here are the steps again:

        You can do this by going to the Control Center-> Help-> Email Support. Ensuring 'Log and Trace Files' is checked will include these files. This is checked by default.​
        I don't suspect that I will need your code, though if it is needed I can request it in my reply to your email.

        Thank you for your patience.

        Comment


          #5
          I figured out how to send the required information; however, I'm getting this message when sending the email. Please confirm if you got the email.
          Attached Files

          Comment


            #6
            Originally posted by cajina View Post
            I figured out how to send the required information; however, I'm getting this message when sending the email. Please confirm if you got the email.
            Thank you for your patience.

            I have received your email and will respond shortly.

            Comment


              #7
              Click image for larger version

Name:	Capture.png
Views:	550
Size:	33.3 KB
ID:	1263683I'm getting this error as well. Did this get sorted out? Not sure why Emily decided to do this over email given that the strategy is being built and not in a live environment.
              Last edited by pcinkpen; 08-08-2023, 05:27 PM.

              Comment


                #8
                Originally posted by pcinkpen View Post
                Click image for larger version

Name:	Capture.png
Views:	550
Size:	33.3 KB
ID:	1263683I'm getting this error as well. Did this get sorted out? Not sure why Emily decided to do this over email given that the strategy is being built and not in a live environment.
                Hello pcinkpen,

                Thank you for your note.

                I explained why email was best to assist cajina with an order analysis:
                "It is typically best for us to provide an order submission analysis via email. Please send us your diagnostic files so we may further investigate what is occurring with your trailing stop."

                I was able to review the log and trace files to give a play-by-play of how the trailing loss was behaving and at what point it was attempting to submit the stop loss on the wrong side of the market, resulting in an error.

                If you are in a long position, the stop loss should only be submitted below the market price and if the strategy attempts to submit it above the market you will get the error message "Stop price can't be changed above the market." You may need to review your strategy logic and how your trailing stop is set up to ensure it is not attempting to move the trailing stop to the incorrect side of the market.

                Please let us know if we may be of further assistance.

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by NullPointStrategies, Today, 05:17 AM
                0 responses
                44 views
                0 likes
                Last Post NullPointStrategies  
                Started by argusthome, 03-08-2026, 10:06 AM
                0 responses
                124 views
                0 likes
                Last Post argusthome  
                Started by NabilKhattabi, 03-06-2026, 11:18 AM
                0 responses
                65 views
                0 likes
                Last Post NabilKhattabi  
                Started by Deep42, 03-06-2026, 12:28 AM
                0 responses
                42 views
                0 likes
                Last Post Deep42
                by Deep42
                 
                Started by TheRealMorford, 03-05-2026, 06:15 PM
                0 responses
                46 views
                0 likes
                Last Post TheRealMorford  
                Working...
                X