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 NullPointStrategies, Yesterday, 05:17 AM
    0 responses
    62 views
    0 likes
    Last Post NullPointStrategies  
    Started by argusthome, 03-08-2026, 10:06 AM
    0 responses
    134 views
    0 likes
    Last Post argusthome  
    Started by NabilKhattabi, 03-06-2026, 11:18 AM
    0 responses
    75 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
    50 views
    0 likes
    Last Post TheRealMorford  
    Working...
    X