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 ZenCortexCLICK, Today, 04:58 AM
                0 responses
                2 views
                0 likes
                Last Post ZenCortexCLICK  
                Started by sidlercom80, 10-28-2023, 08:49 AM
                172 responses
                2,280 views
                0 likes
                Last Post sidlercom80  
                Started by Irukandji, Yesterday, 02:53 AM
                2 responses
                17 views
                0 likes
                Last Post Irukandji  
                Started by adeelshahzad, Today, 03:54 AM
                0 responses
                4 views
                0 likes
                Last Post adeelshahzad  
                Started by Barry Milan, Yesterday, 10:35 PM
                3 responses
                13 views
                0 likes
                Last Post NinjaTrader_Manfred  
                Working...
                X