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 DavidHP, Today, 07:56 AM
                1 response
                5 views
                0 likes
                Last Post NinjaTrader_Erick  
                Started by kujista, Today, 06:23 AM
                3 responses
                9 views
                0 likes
                Last Post kujista
                by kujista
                 
                Started by Mindset, Yesterday, 02:04 AM
                2 responses
                18 views
                0 likes
                Last Post NinjaTrader_RyanS  
                Started by f.saeidi, Today, 08:03 AM
                1 response
                5 views
                0 likes
                Last Post NinjaTrader_Jesse  
                Started by samish18, 04-17-2024, 08:57 AM
                15 responses
                54 views
                0 likes
                Last Post NinjaTrader_BrandonH  
                Working...
                X