Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Rejected limit orders programmatic notification

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

    Rejected limit orders programmatic notification

    Testing with NT7B15. While testing with market replay connection I receive an error such as this:

    5/13/2010 11:35:38 PM Order Market Replay Connection, Sell stop or sell stop limit orders can't be placed above the market. affected Order: Sell 1 Stop @ 1194.25

    I have an OnOrderUpdate method and I receive no notification of this rejected order in it. Is there a way to receive some kind of notification in the strategy of this rejection?

    Thanks,
    Tim

    #2
    Tim, in NT 7 the IOrder objects would also offer the Error / NativeError properties for getting those notifications.

    Alternatively you could just check for the 'rejected' orderstate of your IOrder -



    If you want to handle the rejection in your custom code and leave the strategy running, please work with the RealTimeErrorHandling set to TakeNoAction (of course using this adds a layer of responsibility to your coding) -

    Comment


      #3
      I found that its coming from a non-simulated trailstop order. I wasn't catching it in the OnOrderUpdate method because its order object did not equal to the one I was tracking. Once I changed it to simulated trailstop, the rejections stopped.

      Tim.

      Comment

      Latest Posts

      Collapse

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