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 NullPointStrategies, Yesterday, 05:17 AM
      0 responses
      55 views
      0 likes
      Last Post NullPointStrategies  
      Started by argusthome, 03-08-2026, 10:06 AM
      0 responses
      132 views
      0 likes
      Last Post argusthome  
      Started by NabilKhattabi, 03-06-2026, 11:18 AM
      0 responses
      73 views
      0 likes
      Last Post NabilKhattabi  
      Started by Deep42, 03-06-2026, 12:28 AM
      0 responses
      45 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