Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Is there a way to catch order ignoring event from inside strategy code?

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

    Is there a way to catch order ignoring event from inside strategy code?

    Hello.

    Sometimes my orders ignored even is I checking GetCurrentAsk(), GetCurrentBid() and make distance in some ticks between market and order price:

    Strategy 'XXX': A Buy order placed at '1/17/2018 3:00:00 AM' has been ignored since the stop price is less than or equal to the close price of the current bar. This is an invalid order and subsequent orders may also be ignored. Please fix your strategy.
    Is there any way to catch "order ignored event" from inside strategy?

    (Right now I am using ``Unmanaged, but Managed is also interesting).
    fx.practic
    NinjaTrader Ecosystem Vendor - fx.practic

    #2
    Hello fx.practic,

    Thanks for your inquiry.

    I'd like to point out the following thread which discusses this with NT7: https://ninjatrader.com/support/foru...ad.php?t=41807

    We can typically work around this for realtime orders by setting RealtimeErrorHandling to IgnoreAllErrors or StopCancelCloseIgnoreRejects, and trapping the rejection in OnOrderUpdate(). For historical orders the strategy should be programmed to avoid submitting buy stop or buy stop limit orders below close of the current bar.

    RealtimeErrorHandling - https://ninjatrader.com/support/help...orhandling.htm

    One suggestion for historical orders would be to ensure order submission occurs at a valid price then to change it to the level you need at an appropriate time. Similar to the suggestion here.

    This is valid for both Managed and Unmanaged Strategies.

    Please let us know if we can be of further assistance.
    JimNinjaTrader Customer Service

    Comment


      #3
      Hello, Jim.
      This is my late "thank you"! )
      fx.practic
      NinjaTrader Ecosystem Vendor - fx.practic

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by DanielSanMartin, Yesterday, 02:37 PM
      2 responses
      13 views
      0 likes
      Last Post DanielSanMartin  
      Started by DJ888, 04-16-2024, 06:09 PM
      4 responses
      12 views
      0 likes
      Last Post DJ888
      by DJ888
       
      Started by terofs, Today, 04:18 PM
      0 responses
      11 views
      0 likes
      Last Post terofs
      by terofs
       
      Started by nandhumca, Today, 03:41 PM
      0 responses
      8 views
      0 likes
      Last Post nandhumca  
      Started by The_Sec, Today, 03:37 PM
      0 responses
      7 views
      0 likes
      Last Post The_Sec
      by The_Sec
       
      Working...
      X