Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy tester -> An order has been ignored

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

    Strategy tester -> An order has been ignored

    Hi,

    I'm analyzing my strategy and I can see from time to time this message.
    What's this does mean?

    Code:
    Strategy 'Strategy_TEST/-1': An order has been ignored since the stop price ‘2301’ near the bar stamped ‘03/11/2024 03:35:00’ is invalid based on the price range of the bar. This is an invalid order and subsequent orders may also be ignored
    Thanks​

    #2
    Hello Powerbucker,

    Thank you for your post.

    The error is letting you know the price was invalid for that order when it was submitted based on the prices at that time. You would need to make sure to use a price that is valid at that time.

    Prints should be added to the script that print out the Close, High, Low, Bid, and Ask prices of the bars along with the time of the bar and the stop price you are submitting the order to. Then you could compare the print output to the bars on the chart to see how the stop price is evaluated based on the range of the bars.

    Buy stop orders must be placed above the current ask price. Sell stop orders must be placed below the current bid price.

    Note if this is being tested on Historical data, such as backtesting in the Strategy Analyzer, the bid/ask prices are replaced with the Close price. This information can be found on the help guide pages below.

    GetCurrentBid(): https://ninjatrader.com/support/helpguides/nt8/getcurrentbid.htm
    GetCurrentAsk():https://ninjatrader.com/support/help...currentask.htm

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by CarlTrading, 03-31-2026, 09:41 PM
    1 response
    78 views
    1 like
    Last Post NinjaTrader_ChelseaB  
    Started by CarlTrading, 04-01-2026, 02:41 AM
    0 responses
    40 views
    0 likes
    Last Post CarlTrading  
    Started by CaptainJack, 03-31-2026, 11:44 PM
    0 responses
    63 views
    2 likes
    Last Post CaptainJack  
    Started by CarlTrading, 03-30-2026, 11:51 AM
    0 responses
    63 views
    0 likes
    Last Post CarlTrading  
    Started by CarlTrading, 03-30-2026, 11:48 AM
    0 responses
    54 views
    0 likes
    Last Post CarlTrading  
    Working...
    X