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