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 CarlTrading, 05-11-2026, 05:56 AM
              0 responses
              52 views
              0 likes
              Last Post CarlTrading  
              Started by CarlTrading, 05-10-2026, 08:12 PM
              0 responses
              29 views
              0 likes
              Last Post CarlTrading  
              Started by Hwop38, 05-04-2026, 07:02 PM
              0 responses
              193 views
              0 likes
              Last Post Hwop38
              by Hwop38
               
              Started by CaptainJack, 04-24-2026, 11:07 PM
              0 responses
              354 views
              0 likes
              Last Post CaptainJack  
              Started by Mindset, 04-21-2026, 06:46 AM
              0 responses
              274 views
              0 likes
              Last Post Mindset
              by Mindset
               
              Working...
              X