Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Buy order placed.. has been ignored..

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

    Buy order placed.. has been ignored..

    Hi there,

    I am getting an error message in the log for a buy stop order saying:

    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. This is an invalid order and ... Please fix your strategy.

    But the buy stop order is correct:

    if (FirstTickOfBar


    EnterLongStop(High[0],"Buy A");

    Now, Close[0] does equal High[0]. So the next bar should buy it right away.
    I'm not sure why it is ignoring it all together, that doesn't make sense.

    I am in backtesting mode. Is this a bug?

    Thx

    #2
    If ij001,

    If Close = High, then it's an invalid order.

    The message you provided tells this:
    has been ignored since the stop price is less than or equal to the close price of the current bar
    Ryan M.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_RyanM View Post
      If ij001,

      If Close = High, then it's an invalid order.

      The message you provided tells this:
      I don't understand why it is classified as invalid. Since its closing at its high, it should just execute a market order because its equal. This is a scenario of strength.

      Anyway, will a simple IF, ELSE statement be a work around?

      IF Close[0] = High[0]
      EnterLong("Buy A")
      Else
      EnterLongStop(High[0],"Buy A");

      The buy stop order is very useful to me so I can't change it to EnterLong() because sometimes it wont reach the entry price.

      Comment


        #4
        Yes, that should be a good fix ij001 - the buy stop order has be placed higher, this is a fundamental requirement of this order type, even more so in realtime trading important, since then you trade against the bid / ask spread as well.

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        656 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        371 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        109 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        574 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        579 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X