Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Strategy randomly disables itself

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

    Strategy randomly disables itself

    I'm not sure why this happens, but occasionally my strategy just turns itself off for an instrument. I have the share service set up to send me notifications when a set up occurs, but I haven't set it up to send notifications on strategy activation or de-activation. Is there a way to do this?

    For instance, if I run the strategy on MES, RTY, or MNQ. Sometimes the strategy on MNQ would randomly stop working. it could be any of the 3 instruments. I get no messages in NT8 message center.

    Could a strategy de-activate if I change the data series from extended hours to real time?

    #2
    Hello RISKYBUSINEZZ,

    Thank you for your post.

    Are you experiencing any connection losses?

    Are there any try/catch blocks within the strategy that might be causing the Log to ignore exceptions?

    You should always get a reason in the log for strategy termination if the strategy gets an error and shuts itself down. Is your RealtimeErrorHandling set to RealtimeErrorHandling.StopCancelClose or something different?

    Could a strategy de-activate if I change the data series from extended hours to real time?
    Could you explain what you mean by "extended hours to real time"?

    Comment


      #3
      No try/catch blocks. Though I may end up trying some. See attached log. Sorry it's a PDF.

      Per my latest code:

      RealtimeErrorHandling = RealtimeErrorHandling.StopCancelClose;

      Also, the log shows a message was sent via text to my phone, which it did not do. I checked with the other numbers and they did not receive a message either. In the past the text messages have worked great.

      Real trading hours vs extended hours just refers to the Data series parameter I am using for the trading.
      Last edited by NinjaTrader_Gaby; 07-24-2024, 12:24 PM.

      Comment


        #4
        Around 10:43 you can see where the strategy was disabled.

        Comment


          #5
          Hello,

          Please do not post your log files on the forum - these contain sensitive information.

          Send the log and trace files directly to our support email.

          You can do this by going to the Control Center-> Help-> Email Support

          Ensuring 'Log and Trace Files' is checked will include these files. This is checked by default.

          Please reference the following ticket number in the body of the email: Case Number: 04515014 ATTN Gaby​

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by NullPointStrategies, Yesterday, 05:17 AM
          0 responses
          56 views
          0 likes
          Last Post NullPointStrategies  
          Started by argusthome, 03-08-2026, 10:06 AM
          0 responses
          133 views
          0 likes
          Last Post argusthome  
          Started by NabilKhattabi, 03-06-2026, 11:18 AM
          0 responses
          73 views
          0 likes
          Last Post NabilKhattabi  
          Started by Deep42, 03-06-2026, 12:28 AM
          0 responses
          45 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