Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Automated strategy becoming disabled

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

    Automated strategy becoming disabled

    I left my automated strategy unattended for a couple of hours and for some reason it completely shut off. The indicators the strategy displays stopped showing up and the strategy stopped executing trades. How do I prevent this from happening again. Thanks in advance.

    #2
    Hello Bmatarese,

    Thanks for your post.

    Please check the "Log" tab of the control center as this would show any error messages that would be related to and include the message of disabling the strategy. These error messages would provide some clue as to the cause. Once the cause is known then you can determine what is needed to prevent that.

    If the strategy becomes disabled, it would be expected that any indicators applied by the strategy would be automatically removed from the chart.
    Paul H.NinjaTrader Customer Service

    Comment


      #3
      It says lost price connection for more than 10 seconds and will be restarted. Does this imply an issue with my wifi?

      Comment


        #4
        It says Primary connection=Connected, Price Feed=Connection lost

        Comment


          #5
          Hello Bmatarese,

          Thanks for your reply.

          It does indicate a loss of connection with the price data feed server. There could be a number of connection points between your PC and the source server so the connection loss could occur at any of those points, including your wifi. You can eliminate wifi issues by directly connecting to your router/modem.

          You may want to review your connection loss settings for strategies. These are found in Tools>Options>Strategies. Please see the help guide section, "Understanding NinjaScript properties" on this page: https://ninjatrader.com/support/helpGuides/nt8/?options_strategies.htm for further information regarding these settings.
          Paul H.NinjaTrader Customer Service

          Comment


            #6
            Hello swjake,

            Thanks for your notes.

            To clarify, are you reporting that your custom NinjaScript strategy you created is becoming disabled?

            If so, please check the Log tab of the Control Center for any error messages that would be related to the disabling of the strategy and includes the message of disabling the strategy. These error messages would provide some clues as to the cause for why the strategy was disabled. Once the cause is known then you can determine what is needed to prevent that.

            If the NinjaScript strategy is not behaving as you expect it to, debugging prints should be added to the strategy to confirm exactly how your conditions and logic are evaluating. In the strategy add prints (outside of any conditions) that print the values of every variable used in every condition along with the time of that bar to see how the conditions evaluate.

            Prints will appear in the NinjaScript Output window (New > NinjaScript Output window).​

            Below is a link to a forum post that demonstrates how to use prints to understand behavior.
            https://ninjatrader.com/support/foru...121#post791121
            Brandon H.NinjaTrader Customer Service

            Comment

            Latest Posts

            Collapse

            Topics Statistics Last Post
            Started by DJ888, 04-16-2024, 06:09 PM
            6 responses
            18 views
            0 likes
            Last Post DJ888
            by DJ888
             
            Started by Jon17, Today, 04:33 PM
            0 responses
            1 view
            0 likes
            Last Post Jon17
            by Jon17
             
            Started by Javierw.ok, Today, 04:12 PM
            0 responses
            6 views
            0 likes
            Last Post Javierw.ok  
            Started by timmbbo, Today, 08:59 AM
            2 responses
            10 views
            0 likes
            Last Post bltdavid  
            Started by alifarahani, Today, 09:40 AM
            6 responses
            41 views
            0 likes
            Last Post alifarahani  
            Working...
            X