Can a study remove itself from a chart?

Questions about MultiCharts .NET and user contributed studies.
AlphaCat
Posts: 69
Joined: 09 Jul 2013
Been thanked: 9 times

Can a study remove itself from a chart?

Postby AlphaCat » 07 Jan 2015

If i call Dispose() it results in an exception, the indicator appears to be gone but the chart pane wont close. Is there a way to do this?

User avatar
Henry MultiСharts
Posts: 9165
Joined: 25 Aug 2011
Has thanked: 1264 times
Been thanked: 2957 times

Re: Can a study remove itself from a chart?

Postby Henry MultiСharts » 08 Jan 2015

Hello AlphaCat,

There is no way for a study to completely remove itself from the chart. Dispose and Destroy should not be called from your code, they are used by MultiCharts for release of unmanaged resources.


Return to “MultiCharts .NET”