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

Templates and Indicators

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

    Templates and Indicators

    I have a Custom Indicator that works without any problems when I add it to an existing chart. However, if I save the indicator as part of a template and then load the template, the indicator won't plot. I can see the indicator plot flash up for an instant and then it dissappears. The indicator is in the chart's indicator list. Reloading Ninjascript (F5) doesn't work either. I have to remove the indicator and then add it to the chart again in order to get it to display. Any suggestions as to what I might be causing the problem?

    Thanks in advance.

    #2
    imported post

    Do you see any errormessages in the log tab of the Control Center window?
    RayNinjaTrader Customer Service

    Comment


      #3
      imported post

      The message in the log is as follows:

      Error on plotting indicator: Please check the plot method: Out of Memory


      Comment


        #4
        imported post

        Your custom indicator eats up all available memory -> any chart/template using it will not work.

        Please fix the bug and charts/templates should be working as expected.



        Comment


          #5
          imported post

          The confusing part is that the custom indicator works just fine when I add it to the chart manually (i.e. using "Add" instead of via a template). So it seems that the difference between working and not working seems to have something to do with the way the template populates the chart??

          Comment


            #6
            imported post

            Incorrect. There is no difference. At some point NT just hits the wall, since all memory is eaten up.

            You can justify by using standard indicators: you shouldn't experience any difference there.

            Comment


              #7
              imported post

              Problem solved. Thanks. I 'm using a custom dashstyle which was outside of the plot loop so C# was not releasing the memory when the plot loop went out of scope. Once I moved the DashValues inside the plot loop - Voila!

              Comment


                #8
                imported post

                Excellent!
                RayNinjaTrader Customer Service

                Comment

                Latest Posts

                Collapse

                Topics Statistics Last Post
                Started by wzgy0920, 04-20-2024, 06:09 PM
                2 responses
                26 views
                0 likes
                Last Post wzgy0920  
                Started by wzgy0920, 02-22-2024, 01:11 AM
                5 responses
                32 views
                0 likes
                Last Post wzgy0920  
                Started by wzgy0920, 04-23-2024, 09:53 PM
                2 responses
                49 views
                0 likes
                Last Post wzgy0920  
                Started by Kensonprib, 04-28-2021, 10:11 AM
                5 responses
                193 views
                0 likes
                Last Post Hasadafa  
                Started by GussJ, 03-04-2020, 03:11 PM
                11 responses
                3,235 views
                0 likes
                Last Post xiinteractive  
                Working...
                X