How to run a study only once and/or to remove a study after calculcation?

datapool

New member
Joined
Feb 5, 2021
Posts
2
Likes
0
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?
 

Dragon

Member
Joined
Aug 6, 2021
Posts
5
Likes
0
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.
 
Last edited:
Top