Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Connection Loss Handling

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

    Connection Loss Handling

    I set the connection loss handling to ConnectionLossHandling.KeepRunning, because I want the strategy keeps running if the connection has been lost. In this case is there any additional action taken based on the settings of MaxRestartAttemps or MaxRestartMinutes or are those two settings only used when using ConnectionLossHandling.Recalculate or ConnectionLossHandling.StopStrategy for the connection loss handling?

    Kind regards,
    Rene

    #2
    Hello Rene,

    They will effect all of the ConnectionLossHandling. So if the"number of restart attempts" (MaxRestartAttempt) is meet within in the "Restarts within x minutes" (MaxRestartMinutes) then the strategy will be stopped even if you have ConnectionLossHandling.KeepRunning set.

    If you do not wish this to happen, you may want to set a very high number of restart attemps in a very small amount time.
    JCNinjaTrader Customer Service

    Comment


      #3
      I want to keep the strategy running. So basically I have to use a high MaxRestartAttempt and a low MaxRestartMinutes.
      1. If I set those settings in my strategy, do they have precedence over the settings under ControlCenter-->Strategies-->Ninjascript
      2. Does a very high value of MaxRestartAttempt does have any effect on the performance or does that keeps low because a restart attempt is only made after the connection has been reastablished?
      3. What is the max value for MaxRestartAttempt?
      4. What is de minimum value of MaxRestartMinutes?
      5. Is there a difference in connection lost due to an internetconnection problem or a connection to the primary price feed?
      6. Do those settings have effect if you have secondary price feed defined as backup connection?

      Kind regards,
      Rene

      Comment


        #4
        Hello Rene,

        1. Yes, if they are set within the Strategy they will overwrite the settings inside that menu.
        2. It will not have any effect on the performance of the Strategy.
        3. I do not know the exact max value but you can set it a very high number that will probably never be reached. For example: 999999999
        4. Since it is an integer 1 would be the lowest it can be set to.
        5. Generally, if the API cannot communicate with the broker server in anyway, it will be marked as a Connection Loss.
        6. See post below.
        Last edited by NinjaTrader_JC; 04-06-2013, 06:53 PM.
        JCNinjaTrader Customer Service

        Comment


          #5
          For number 6 the Backup Connection will have no effect on the Connection Loss settings inside of NinjaTrader. Meaning that if your Primary Feed gets a connection loss even if your Backup Feed is connected your Strategy will still be affected by the Connection Loss.
          JCNinjaTrader Customer Service

          Comment


            #6
            Originally posted by Renejm View Post
            I set the connection loss handling to ConnectionLossHandling.KeepRunning, because I want the strategy keeps running if the connection has been lost. In this case is there any additional action taken based on the settings of MaxRestartAttemps or MaxRestartMinutes or are those two settings only used when using ConnectionLossHandling.Recalculate or ConnectionLossHandling.StopStrategy for the connection loss handling?

            Kind regards,
            Rene
            If you are using Zenfire - you are probably hosed with the 30 minute timeout bug, which is well documented.

            Even if your internet reconnects, you sit in the penalty box for 30 minutes.

            We have to wait for NT8 for this fix.

            They might break something in NT7 if they try to fix it, maybe causing more problems.

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by sjsj2732, Yesterday, 04:31 AM
            0 responses
            31 views
            0 likes
            Last Post sjsj2732  
            Started by NullPointStrategies, 03-13-2026, 05:17 AM
            0 responses
            286 views
            0 likes
            Last Post NullPointStrategies  
            Started by argusthome, 03-08-2026, 10:06 AM
            0 responses
            283 views
            0 likes
            Last Post argusthome  
            Started by NabilKhattabi, 03-06-2026, 11:18 AM
            0 responses
            133 views
            1 like
            Last Post NabilKhattabi  
            Started by Deep42, 03-06-2026, 12:28 AM
            0 responses
            91 views
            0 likes
            Last Post Deep42
            by Deep42
             
            Working...
            X