• If this is your first visit, you will have to register before you can post. To view messages, please scroll below and select the forum that you would like to visits. Questions? Be sure to check out the Forum FAQ.

Announcement

Collapse
No announcement yet.

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.



        DierkNinjaTrader Customer Service

        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.

            DierkNinjaTrader Customer Service

            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 clydelee, Today, 02:56 PM
                0 responses
                1 view
                0 likes
                Last Post clydelee  
                Started by Mykro, Today, 02:51 PM
                0 responses
                1 view
                0 likes
                Last Post Mykro
                by Mykro
                 
                Started by 5element, Today, 02:46 PM
                0 responses
                6 views
                0 likes
                Last Post 5element  
                Started by darkgreen, Today, 09:36 AM
                1 response
                6 views
                0 likes
                Last Post NinjaTrader_Kate  
                Started by JuanPabloQuevedo, Today, 01:04 PM
                1 response
                6 views
                0 likes
                Last Post NinjaTrader_Tyler  
                Working...
                X