View Full Version : 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.
12-01-2006, 09:55 AM
Do you see any errormessages in the log tab of the Control Center window?
The message in the log is as follows:
Error on plotting indicator: Please check the plot method: Out of Memory
12-01-2006, 06:44 PM
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.
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??
12-02-2006, 12:43 AM
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.
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!
12-02-2006, 04:03 AM