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:	65
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.
      JasonNinjaTrader Customer Service

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by ageeholdings, Today, 07:43 AM
      0 responses
      6 views
      0 likes
      Last Post ageeholdings  
      Started by pibrew, Today, 06:37 AM
      0 responses
      4 views
      0 likes
      Last Post pibrew
      by pibrew
       
      Started by rbeckmann05, Yesterday, 06:48 PM
      1 response
      14 views
      0 likes
      Last Post bltdavid  
      Started by llanqui, Today, 03:53 AM
      0 responses
      6 views
      0 likes
      Last Post llanqui
      by llanqui
       
      Started by burtoninlondon, Today, 12:38 AM
      0 responses
      12 views
      0 likes
      Last Post burtoninlondon  
      Working...
      X