Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Error - Stop price can't be changed below the market

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

    Error - Stop price can't be changed below the market

    NinjaTrader 8 (8.1.1.7 64-bit)

    I have an ATM I'm testing that does auto trail, and sometimes when I order and it triggers, I get an error like this:

    Click image for larger version

Name:	image.png
Views:	295
Size:	4.7 KB
ID:	1288443

    Why is this popping up randomly on some orders?
    I don't think it's breaking or interrupting the order, but it is intrusive and annoying. Is there any way to disable this?

    #2
    You need to make sure there is enough room to place your order in relation to the current price.

    I use this in one of my script:
    Code:
    case 2: // BO H[1] or BO L[1] /buy if price crosses previous bar high/-/Sell if price crosses previous bar low
                            
     //-
     if (buyModeEnabled) /// If Buy button is turned ON
     {
      if (GetCurrentAsk() <= High[1] + stopLimitMargin * TickSize)
      {
       tradeDir = 1;
      }
     }
    
     if (sellModeEnabled) /// If Sell button is turned ON
     {
      if (GetCurrentBid() >= Low[1] - stopLimitMargin * TickSize)
      {
       tradeDir = 2;
      }
     }​

    Comment


      #3
      Hello MatthewLesko,

      The rejection error indicates the buy stop market order was modified to a price that was below the current market price. After the modification triggered, the market went up. When the order modification arrived at the "exchange" (simulator fill engine), the order price was below the current market price. To reduce the chance of getting this order rejection, please modify the stop market order further away from the market price.

      Comment


        #4
        Hello, I think this is related behavior to this issue with stop placement because I am getting the same error when submitting an entry order with an ATM strategy attached.
        Can you tell me how I can be losing money in the Ninja 8 Sim when I am long and the market is above my entry price and climbing?
        As soon as I enter I get the stop and target error messages, and the stop and target orders are not placed.
        BTW, this issue doesn't appear on every trade, but I have closed and restarted the platform and the issue reappears.

        Thanks,
        DT12​
        Attached Files
        Last edited by DayTrader12; 01-28-2025, 09:58 AM.

        Comment


          #5
          Here are some more error messages from my latest trade.
          Now I am long making money with price below my entry???
          Attached Files
          Last edited by DayTrader12; 01-28-2025, 10:08 AM.

          Comment


            #6
            Here I right click above current price, and the menu says I can only place a sell stop above current price????
            Attached Files

            Comment


              #7
              Last one for now.
              I have a short position, and I tried to drag my stop down below my entry point, but I get another error message.
              Thanks again.

              DT12
              Attached Files

              Comment


                #8
                Hello DT12,

                The A and B prices (ask and bid) are very different from the last traded price as per your first post. 21214.75 and 21214.25 are the ask and bid price, 21278.50 is the last price on the price axis.

                You likely experience a chart rendering issue which causes the last traded price to be received delayed in the chart (which in turn cause the other issues). Can you please select the instrument in question in a SuperDOM to compare the last traded price in the SuperDOM with the last traded price in the chart. If the last traded price is different in the SuperDOM than in the chart, it likely is a chart rendering issue. The chart has too many indicators or add-ons applied that request too much PC resources, which in turn causes the last traded price to be received delayed.

                If you experience a chart rendering issue, please create a brand new chart for the instrument in question without a chart template (see attached screenshot). I assume the last traded price in this new chart is in synch with the last traded price in the SuperDOM. Then please add indicators and add-ons that are normally applied one by one. Check each time if the chart still receives last traded price as expected by comparing it to the last traded price in a SuperDOM.
                Attached Files

                Comment


                  #9
                  Ok, thanks for the help. I have a clean workspace and the prices match with the Super Dom.
                  I am adding indicators to see which one is causing the chart rendering issue.
                  DT12

                  Comment

                  Latest Posts

                  Collapse

                  Topics Statistics Last Post
                  Started by argusthome, 03-08-2026, 10:06 AM
                  0 responses
                  63 views
                  0 likes
                  Last Post argusthome  
                  Started by NabilKhattabi, 03-06-2026, 11:18 AM
                  0 responses
                  40 views
                  0 likes
                  Last Post NabilKhattabi  
                  Started by Deep42, 03-06-2026, 12:28 AM
                  0 responses
                  21 views
                  0 likes
                  Last Post Deep42
                  by Deep42
                   
                  Started by TheRealMorford, 03-05-2026, 06:15 PM
                  0 responses
                  24 views
                  0 likes
                  Last Post TheRealMorford  
                  Started by Mindset, 02-28-2026, 06:16 AM
                  0 responses
                  51 views
                  0 likes
                  Last Post Mindset
                  by Mindset
                   
                  Working...
                  X