• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Disable strategy NT8B12

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

    Disable strategy NT8B12

    Hi, i test my strategy with data disconnection's and i have the problem that you can see on the attached file.

    If the time of the disconnection is less than the DisconnectDelaySeconds, after 300S from the disconnection and never restarted.
    If the time of the disconnection is more than the DisconnectDelaySeconds, the strategy is disable after 300S, and when there is a connection it's enable itself.

    The strategy parameters for the disconnection is:

    ConnectionLossHandling = ConnectionLossHandling.Recalculate;
    DisconnectDelaySeconds= 60; ( before was 300) RestartsWithinMinutes= 360;
    NumberRestartAttempts= 720;

    In tools -> Option -> Strategies i have:

    ConnectionLossHandling = ConnectionLossHandling.Recalculate;
    DisconnectDelaySeconds= 10; RestartsWithinMinutes= 5;
    NumberRestartAttempts= 4;

    what am I doing wrong?

    Thank's,
    Bergimax
    Attached Files
    Last edited by bergimax; 08-02-2016, 12:43 PM.

    #2
    I have this problem with two different computer and two different connection. Both the connection it's a demo's connection.

    Comment


      #3
      Hello,
      Thank you for reporting this on the forum. I am currently running testing with this on my end. Thank you for your patience.
      Cody B.NinjaTrader Customer Service

      Comment


        #4
        Hello,
        I have tested with the example that you have provided and I am finding everything is working as expected on my end. With the disconnection the strategy disables after 60 seconds then I cause the connection to come back, once the connection comes back I see the strategy reenable. If the connection comes back before 60 seconds the strategy does not disable and continues.

        Can you provide more information on what you are seeing, how you are reproducing this, and what data provider you are using?
        Cody B.NinjaTrader Customer Service

        Comment


          #5
          Hi Cody, thank's for the replay!

          My provider is CQG, and i use ninjatrader 8 Beta12. The problem is:
          1) i have this settings, but the disable for disconnection is calculate on 300S( the first value i try with strategy. When i change into 60S, the strategy use 300S, but i don't know why).
          2) if the disconnection is less than 300s(like 1 or 2 second), after 300s from the first disconnectionthe startegy is disable and never restarted. I try with two different pc and with cqg and continuum data.

          Thank's,
          Bergimax

          Comment


            #6
            From the log i try to expain better the situation:
            1) disconnection is bigger than the DisconnectDelaySeconds= 60.

            2016-08-01 12:58:34:393|1|2|My CQG: Primary connection=Connection lost, Price feed=Connected
            2016-08-01 12:58:43:007|1|2|Using HDS (hds-us-001.ninjatrader.com/31655)
            2016-08-01 12:58:51:578|1|2|My CQG: Primary connection=Connection lost, Price feed=Connection lost
            2016-08-01 13:02:37:132|3|4|Unable to load server side config file: The remote name could not be resolved: 'license2.ninjatrader.com'
            2016-08-01 13:03:52:473|3|4|Strategy 'xyz_1_AI1/81509073' lost price connection for more than 300 seconds and will be restarted.
            2016-08-01 13:03:52:473|1|4|Disabling NinjaScript strategy 'xyz_1_AI1/81509073'
            2016-08-01 13:04:25:798|1|2|My CQG: Primary connection=Connected, Price feed=Connection lost
            2016-08-01 13:04:29:761|1|2|My CQG: Primary connection=Connected, Price feed=Connected
            2016-08-01 13:04:33:603|1|2|Connection restored to the NinjaTrader Historical Data Server: hds-us-001.ninjatrader.com


            2) disconnection is lesser than the DisconnectDelaySeconds= 60.

            2016-08-01 13:47:26:509|1|2|My CQG: Primary connection=Connection lost, Price feed=Connected
            2016-08-01 13:47:35:319|1|2|My CQG: Primary connection=Connection lost, Price feed=Connection lost
            2016-08-01 13:47:36:483|1|2|My CQG: Primary connection=Connected, Price feed=Connection lost
            2016-08-01 13:47:41:010|1|2|My CQG: Primary connection=Connected, Price feed=Connected
            2016-08-01 13:47:43:843|3|2|Connection lost to the NinjaTrader Historical Data Server: hds-us-001.ninjatrader.com
            2016-08-01 13:47:53:854|1|2|Using HDS (hds-us-001.ninjatrader.com/31655)
            2016-08-01 13:47:54:372|1|2|Connection restored to the NinjaTrader Historical Data Server: hds-us-001.ninjatrader.com
            2016-08-01 13:48:17:425|1|4|NinjaScript strategy 'xyz_1_AI1/81509073' submitting order
            2016-08-01 13:48:36:285|1|2|My CQG: Primary connection=Connected, Price feed=Connection lost
            2016-08-01 13:48:37:041|1|2|My CQG: Primary connection=Connected, Price feed=Connected
            2016-08-01 13:52:35:552|3|4|Strategy 'xyz_1_AI1/81509073' lost price connection for more than 300 seconds and will be restarted.
            2016-08-01 13:52:35:552|1|4|Disabling NinjaScript strategy 'xyz_1_AI1/81509073'

            Thank's,
            Bergimax

            Comment


              #7
              For your information, i use windows 10 and Windows 7, in the both operating system i have this problem.

              Comment


                #8
                Hello,
                Thank you for specifying that this does occur on Windows 10 and Windows 7. I am currently still testing and trying to reproduce what you are seeing on my end. If there are any other steps you are using that you have not listed below please let me know these steps.
                Thank you.
                Cody B.NinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by EnveousColnago, Yesterday, 05:43 PM
                7 responses
                37 views
                0 likes
                Last Post Lancer
                by Lancer
                 
                Started by PeterGolz, 01-17-2020, 10:42 AM
                11 responses
                73 views
                0 likes
                Last Post reubenlasky  
                Started by utilizator, Today, 11:36 AM
                0 responses
                6 views
                0 likes
                Last Post utilizator  
                Started by EnveousColnago, Today, 07:24 AM
                1 response
                11 views
                0 likes
                Last Post NinjaTrader_ShawnB  
                Started by tornadoatc, Today, 10:31 AM
                0 responses
                4 views
                0 likes
                Last Post tornadoatc  
                Working...
                X