Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

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
    Chris L.NinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by rbeckmann05, Yesterday, 06:48 PM
    1 response
    12 views
    0 likes
    Last Post bltdavid  
    Started by llanqui, Today, 03:53 AM
    0 responses
    6 views
    0 likes
    Last Post llanqui
    by llanqui
     
    Started by burtoninlondon, Today, 12:38 AM
    0 responses
    10 views
    0 likes
    Last Post burtoninlondon  
    Started by AaronKoRn, Yesterday, 09:49 PM
    0 responses
    15 views
    0 likes
    Last Post AaronKoRn  
    Started by carnitron, Yesterday, 08:42 PM
    0 responses
    11 views
    0 likes
    Last Post carnitron  
    Working...
    X