Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

order invalid based on price error

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

    #16
    Hello garylyb,

    Please provide all of the requested information so that I may continue assisting you.

    I was not able to confirm, the ignored order warning is not occurring without modifying the script?



    It sounds like you modified it incorrectly.

    Please re-import the original script I provided you and overwrite the existing script to undo the changes you have made.

    On line 61 you can set the price for the stop. You can change this from 6000 to whatever value you would like.

    Please do not add or remove any lines of code.

    Provide the output from the script I have provided.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #17
      The file I sent with the time stamp of 1:05 pm is from your original script. I deleted my changes, unzipped your file, and ran it. There is no error message in that file.


      Let me know what you want me to do.

      Comment


        #18
        Hello garylyb,

        Thank you for confirming the example I have provided that is submitting a buy stop limit order at 6000 is not producing the ignored order warning.
        This lets you know that with the proper logic the ignored order can be avoided.

        On line 61 you can set the price for the stop. You can change this from 6000 to whatever value you would like.

        Please do not add or remove any lines of code.

        Try modifying line 61 and 62 to:
        double stopPrice = (High[0] + GetCurrentAsk()) /2;
        double limitPrice = (High[0] + GetCurrentAsk()) /2;

        Compile and run the script.

        Save the output from the output window to a text file (right-click the output window, select Save as).
        Attach the output text file to your next post.​
        Chelsea B.NinjaTrader Customer Service

        Comment


          #19
          here is the script with those 2 lines changed. I don't see any error
          Attached Files

          Comment


            #20
            Hello garylyb,

            Thank you for confirming this.

            Use this test script as an example to model your own code after.

            This demonstrates that as long as the logic is ensuring the price is a valid price the ignored order warning can be avoided.
            Chelsea B.NinjaTrader Customer Service

            Comment


              #21
              ok, thanks for looking in to this.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by NullPointStrategies, Yesterday, 05:17 AM
              0 responses
              53 views
              0 likes
              Last Post NullPointStrategies  
              Started by argusthome, 03-08-2026, 10:06 AM
              0 responses
              130 views
              0 likes
              Last Post argusthome  
              Started by NabilKhattabi, 03-06-2026, 11:18 AM
              0 responses
              70 views
              0 likes
              Last Post NabilKhattabi  
              Started by Deep42, 03-06-2026, 12:28 AM
              0 responses
              44 views
              0 likes
              Last Post Deep42
              by Deep42
               
              Started by TheRealMorford, 03-05-2026, 06:15 PM
              0 responses
              49 views
              0 likes
              Last Post TheRealMorford  
              Working...
              X