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 CarlTrading, 03-31-2026, 09:41 PM
    1 response
    43 views
    0 likes
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    21 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    30 views
    1 like
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    50 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    40 views
    0 likes
    Last Post CarlTrading  
    Working...
    X