Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How do I capture an 'order was ignored' event within a Strategy?

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

    How do I capture an 'order was ignored' event within a Strategy?

    I need to find a way to capture and respond to 'wrong side of the market' stop orders that were ignored to be able to use NinjaTrader to accurately backtest. In real-time trading these events are captured and dealt with when a OrderState = OrderState.Rejected event is presented.

    How do I enable this same notification functionality for historical orders while backtesting and optimizing?

    It appears this feature request from fx.practic has not yet been enabled .. possibly SFT-4365 (Please add my vote).
    "And I have another feature request: add new OrderState.Ignored and to trigger OnOrderUpdate() method when order ignored.
    Thank you."



    Any method to capture the order ignored event would be fine?


    If there is no better method, within a strategy how do I subscribe to NinjaTrader's Log Events so I can see the order ignored event as it is written to the Log? (asking for a snipit of code)


    Thanks!
    Hedge








    #2
    Hello Hedge,

    In historical data these ignored orders are not rejected.

    However, they would show up with TraceOrders when overriding OnOrderTrace().
    https://ninjatrader.com/support/help...ordertrace.htm

    SFT-4367 has not been implemented at this time.

    When new features are implemented, they will be listed in the Release Notes page of the Help Guide. The ID number may be different than the internal feature request tracking ID, but the description of the feature will let you know if that feature has been implemented.

    Release Notes - https://ninjatrader.com/support/help...ease_notes.htm

    There is not a method to subscribe to Log events.
    Last edited by NinjaTrader_ChelseaB; 04-24-2022, 04:13 PM.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Originally posted by NinjaTrader_ChelseaB View Post
      Hello Hedge,

      However, they would show up with TraceOrders when overriding OnOrderTrace().
      https://ninjatrader.com/support/help...ordertrace.htm
      Thanks Chelsea,

      This is exactly what I needed.

      Hedge

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by Mindset, 04-21-2026, 06:46 AM
      0 responses
      90 views
      0 likes
      Last Post Mindset
      by Mindset
       
      Started by M4ndoo, 04-20-2026, 05:21 PM
      0 responses
      135 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by M4ndoo, 04-19-2026, 05:54 PM
      0 responses
      68 views
      0 likes
      Last Post M4ndoo
      by M4ndoo
       
      Started by cmoran13, 04-16-2026, 01:02 PM
      0 responses
      119 views
      0 likes
      Last Post cmoran13  
      Started by PaulMohn, 04-10-2026, 11:11 AM
      0 responses
      69 views
      0 likes
      Last Post PaulMohn  
      Working...
      X