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

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:	306
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 mjairg, 07-20-2023, 11:57 PM
        3 responses
        213 views
        1 like
        Last Post PaulMohn  
        Started by TheWhiteDragon, 01-21-2019, 12:44 PM
        4 responses
        544 views
        0 likes
        Last Post PaulMohn  
        Started by GLFX005, Today, 03:23 AM
        0 responses
        3 views
        0 likes
        Last Post GLFX005
        by GLFX005
         
        Started by XXtrader, Yesterday, 11:30 PM
        2 responses
        12 views
        0 likes
        Last Post XXtrader  
        Started by Waxavi, Today, 02:10 AM
        0 responses
        7 views
        0 likes
        Last Post Waxavi
        by Waxavi
         
        Working...
        X