Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

RealtimeErrorHandling.IgnoreAllErrors Allows Strategy to be Disabled

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

    RealtimeErrorHandling.IgnoreAllErrors Allows Strategy to be Disabled

    Dear NinjaTrader Support,

    My strategy sets error handling to RealtimeErrorHandling.IgnoreAllErrors in OnStateChange SetDefaults. Also, IsUnmanaged = true.

    In fast moving markets, rejected orders are frequent. I look for and process all rejected orders in the OnOrderUpdate() event. Try...Catch error trapping included.

    However, NT8 persists in disabling the strategy even though the rejected order is managed by the strategy.

    Rejected orders are NOT errors -- they are part of everyday trading. Can you suggest a way to keep the strategy running, even when an order is rejected?

    Thank you.

    #2
    Hello D Trader,

    Where is RealtimeErrorHandling being set?

    Was this changed at any point?

    If you print this in OnBarUpdate() is it the value you are expecting?

    I would not expect the strategy to be disabled from a rejection.
    If you can add a print to OnBarUpdate() and reproduce this, please send an email to platformsupport [at] ninjatrader [dot] com so that I may further investigate.
    In the email please add the ticket ID 2632926.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Thank you for your reply, Chelsea.

      I can confirm that a print of RealtimeErrorHandling.ToString() inside OnBarUpdate() shows that the value is still set to IgnoreAllErrors. It is not changed anywhere except when initially assigned in OnStateChange SetDefaults (as indicated in my original post).

      From the Log, please see attachment. The strategy is disabled immediately as soon as the order is rejected: Click image for larger version

Name:	NT8 Error - RealtimeErrorHandling (01July 2020).png
Views:	452
Size:	5.0 KB
ID:	1107589

      Do you still want me to email, or do you have the information you need? Thank you.
      Attached Files

      Comment


        #4
        Hello D Trader,

        I am not able to reproduce this behavior using 8.0.22.2.
        Are you using 8.0.22.0?

        Attached is a test script.

        Below is a link to a video of me testing the script.


        Please this test script on your end. Are you getting different behavior than what is shown in the video?
        Attached Files
        Chelsea B.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by NullPointStrategies, Today, 05:17 AM
        0 responses
        52 views
        0 likes
        Last Post NullPointStrategies  
        Started by argusthome, 03-08-2026, 10:06 AM
        0 responses
        130 views
        0 likes
        Last Post argusthome  
        Started by NabilKhattabi, 03-06-2026, 11:18 AM
        0 responses
        70 views
        0 likes
        Last Post NabilKhattabi  
        Started by Deep42, 03-06-2026, 12:28 AM
        0 responses
        44 views
        0 likes
        Last Post Deep42
        by Deep42
         
        Started by TheRealMorford, 03-05-2026, 06:15 PM
        0 responses
        49 views
        0 likes
        Last Post TheRealMorford  
        Working...
        X