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 Geovanny Suaza, 02-11-2026, 06:32 PM
      0 responses
      599 views
      0 likes
      Last Post Geovanny Suaza  
      Started by Geovanny Suaza, 02-11-2026, 05:51 PM
      0 responses
      344 views
      1 like
      Last Post Geovanny Suaza  
      Started by Mindset, 02-09-2026, 11:44 AM
      0 responses
      103 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by Geovanny Suaza, 02-02-2026, 12:30 PM
      0 responses
      558 views
      1 like
      Last Post Geovanny Suaza  
      Started by RFrosty, 01-28-2026, 06:49 PM
      0 responses
      557 views
      1 like
      Last Post RFrosty
      by RFrosty
       
      Working...
      X