Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Read the NT Log

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

    Read the NT Log

    Hello guys,

    today NT lost the connection for whatever reason to one of the data servers. This resulted in some unhandled exeption. I had to kill the NT8 process and restart it. The position from the strategy was still open, but the TP and SL order was canceled.



    Is there a way I can read the NT Log? That way I could look for warnings and error and notify myself about any possible issues.

    Thanks
    Florian

    #2
    Hello Florian,

    Thank you for your post.

    You could check the Log tab of the Control Center to view a sequence of logged messages from the lost connection and to see what occurred. I also recommend going to Control Center > Tools > Options > Strategies and reviewing your NinjaScript connection loss settings to ensure they are configured as desired. For more information:


    If you want to programmatically check for any errors, you could consider writing your own custom RealtimeErrorHandling logic. This is an advanced concept and should not be taken lightly; as noted in the help guide, "Setting this property value to IgnoreAllErrors can have serious adverse effects on a running strategy unless you have programmed your own order rejection handling in the OnOrderUpdate() method​"



    Please let us know if we may be of further assistance.

    Comment


      #3
      Hello Emily, I do not want to view the error log manually. The idea is that the strategy will read the log and notify me.
      My own RealtimeErrorHandling would be for my own code. In this case NT lost the connection to a server. This is outside of a strategy. How do I read those events?

      Comment


        #4
        Hello Florian,

        Thank you for your reply.

        You could consider adding the OnConnectionStatusUpdate() method to your strategy. I suspect this is more in line with what you are looking for. For more information:Please feel free to reach out with any additional questions or concerns.

        Comment

        Latest Posts

        Collapse

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