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 Hwop38, 05-04-2026, 07:02 PM
      0 responses
      169 views
      0 likes
      Last Post Hwop38
      by Hwop38
       
      Started by CaptainJack, 04-24-2026, 11:07 PM
      0 responses
      324 views
      0 likes
      Last Post CaptainJack  
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      250 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      351 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      180 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Working...
      X