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 kinfxhk, 07-13-2026, 10:18 AM
    0 responses
    58 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 09:50 AM
    0 responses
    41 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-13-2026, 07:21 AM
    0 responses
    46 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by kinfxhk, 07-11-2026, 02:11 AM
    0 responses
    37 views
    0 likes
    Last Post kinfxhk
    by kinfxhk
     
    Started by SalmaTrader, 07-07-2026, 10:26 PM
    0 responses
    157 views
    0 likes
    Last Post SalmaTrader  
    Working...
    X