Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

Issue with Strategy Enablement and Missing Moving Averages

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

    Issue with Strategy Enablement and Missing Moving Averages

    Good day,
    I'm working on a strategy that uses moving averages.
    • I have added moving averages through code, and the MAs are displayed correctly on the chart.
    • Suddenly and without any apparent reason, the MAs disappear from the chart.
    • As shown in the image, the control panel indicates that the strategy is enabled.
    • However, if I go to the chart and right-click on the strategy properties, it says it is not enabled.
    • But if I let the strategy run, it continues to work even though the MAs are not there.
    • I have placed prints throughout the code to see what happens, but none of them trigger when the MAs disappear.

      I also have TextBoxes that I place on the chart, and they disappear too, but let's focus on the MAs.
    What could be happening? And how can I fix it?
    Best regards

    Click image for larger version

Name:	imagen.png
Views:	16
Size:	355.5 KB
ID:	1295919

    #2
    Hello ervin,

    Are there errors on the log tab of the Control Center when this occurs?

    You may need to update to the latest release 8.1.2.1.
    Chelsea B.NinjaTrader Customer Service

    Comment


      #3
      Not that I've seen, I'll look into it in more detail. But any other suggestions apart from changing the version? Please.

      Comment


        #4
        Hello ervin,

        I would expect the strategy is becoming disabled due to an error.

        Are you viewing the Log tab of the Control Center at the same time the behavior is being reproduced?

        I'm not sure of other causes of this behavior if reproducing with the latest release.
        Chelsea B.NinjaTrader Customer Service

        Comment


          #5
          Thank you for the response. I've been checking the log when this happens, and there's nothing in the log when the moving averages disappear.

          Comment


            #6
            Hello ervin,

            May I confirm you have updated to 8.1.2.1 and are able to reproduce the behavior?

            Does the log show the strategy was disabled?
            Chelsea B.NinjaTrader Customer Service

            Comment


              #7
              I'm not updated.
              "Does the log show the strategy was disabled?" NO, strategy is on.

              Comment

              Latest Posts

              Collapse

              Topics Statistics Last Post
              Started by jxs_xrj, 01-12-2020, 09:49 AM
              6 responses
              3,290 views
              1 like
              Last Post jgualdronc  
              Started by Touch-Ups, Today, 10:36 AM
              0 responses
              9 views
              0 likes
              Last Post Touch-Ups  
              Started by geddyisodin, 04-25-2024, 05:20 AM
              11 responses
              62 views
              0 likes
              Last Post halgo_boulder  
              Started by Option Whisperer, Today, 09:55 AM
              0 responses
              8 views
              0 likes
              Last Post Option Whisperer  
              Started by halgo_boulder, 04-20-2024, 08:44 AM
              2 responses
              25 views
              0 likes
              Last Post halgo_boulder  
              Working...
              X