I want the study just to execute once and then remove the study after execution? Is there a java call to remove a study from the chart? Or how do I ensure the study is only run once on the chart?
I have tried this and it looks to be impossible. Calling this.Destroy() from a Study will throw a null pointer in the application. There is no java call to remove a study from a chart. Alternatively, you can use a simple static counter object to ensure that calculations are only done once.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.