Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Order ignored since stop price is invalid based on the price range of the bar

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

    Order ignored since stop price is invalid based on the price range of the bar

    Hi,

    I have a strategy which sometimes gives me an error. It ignores closing the trade even if close condition is valid or it entirely ignores trade entry order. I'd like to attach here parts of the code which may cause the issue. Strategy works only in one direction based on choice, meaning that it takes only shorts or only longs depending on selection, never at the same time.

    In attached picture of chart, short entry had to be stopped where red dotted line is drawn but trade is never closed.

    Any help would be appreciated.



    Attached Files

    #2
    Hi Murphy67, thanks for posting.

    Our colleagues have given a very good guide on troubleshooting missed orders here, please read through this post and see if any of this applies to your situation:

    I am coding a strategy and am receiving numerous instances of the following error message: A Buy order placed at '[time]' has been ignored since the stop price is less than or equal to the close price of the current bar. I have searched the NinjaTrader forums and have read many posts related to this error message, but none


    It sounds like it is happening in the historical backtest, so intrabar granularity (explained above) would be a good thing to test.

    Kind regards,
    -ChrisL

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Mindset, 04-21-2026, 06:46 AM
    0 responses
    90 views
    0 likes
    Last Post Mindset
    by Mindset
     
    Started by M4ndoo, 04-20-2026, 05:21 PM
    0 responses
    137 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by M4ndoo, 04-19-2026, 05:54 PM
    0 responses
    68 views
    0 likes
    Last Post M4ndoo
    by M4ndoo
     
    Started by cmoran13, 04-16-2026, 01:02 PM
    0 responses
    120 views
    0 likes
    Last Post cmoran13  
    Started by PaulMohn, 04-10-2026, 11:11 AM
    0 responses
    71 views
    0 likes
    Last Post PaulMohn  
    Working...
    X