Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Order Ignored

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

    Order Ignored

    Hello!

    Ok question that I saw answered on another forum but is not possible in my scenario.

    I am submitting stop orders and I keep getting these errors "An order has been ignored since the stop price X blah blah"

    I read up on the error and it seems that it is assuming the error would be rejected I think?

    Regardless I have found a scenario where I am placing the order 1 point away from where price would of been and it is still assuming it would of gotten rejected so want to know if there is a solution.

    Notes of what I am doing:
    - Submitting order on Primary Bar Series (BarsInProgress 0) with the granularity of a 1 tick data series (I have a 1 tick data series loaded in the background). So the submission looks like this
    "EnterLongStopMarket(1, true, Quantity, entryPrice, entryText);" This order ends up being 1 Point above the open of the next bar so may be rejected in a crazy market but maybe not. Let me know if I am thinking of this wrong

    Things I have tried:
    1. Submitting to Primary Data Series "EnterLongStopMarket(0, true, Quantity, entryPrice, entryText);" Doesn't work either as expected
    2. I am using a 1 Tick Data series in the background so I cannot change the Historical Order Fill Processing to High (The solution I saw on another forum post)
    3. I even tried submitting it on the opening tick of the next bar on the 1 tick data series and it still ignored it.

    Let me know if you need anything else from me, I can send test script if needed.

    Thanks!

    #2
    Hello Vikuno1,

    It sounds like you have a stop order being submitted in historical that has an invalid stop price.

    For a buy stop order, such as when exiting a short position or entering a long position, the stop price must be above the current ask price.
    For a sell stop order, such as when exiting a long position or entering a short position, the stop price must be below the current bid price.​

    Below is a link to a forum post with sample code on ensure the stop price is a valid price.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      That did it thanks!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by CarlTrading, 03-31-2026, 09:41 PM
      1 response
      81 views
      1 like
      Last Post NinjaTrader_ChelseaB  
      Started by CarlTrading, 04-01-2026, 02:41 AM
      0 responses
      42 views
      0 likes
      Last Post CarlTrading  
      Started by CaptainJack, 03-31-2026, 11:44 PM
      0 responses
      64 views
      2 likes
      Last Post CaptainJack  
      Started by CarlTrading, 03-30-2026, 11:51 AM
      0 responses
      66 views
      0 likes
      Last Post CarlTrading  
      Started by CarlTrading, 03-30-2026, 11:48 AM
      0 responses
      54 views
      0 likes
      Last Post CarlTrading  
      Working...
      X