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.