Deinitialization logic
Deinitialization logic
20 Feb 2019, 19:23
Hi, is there any supported/unsupported way to override deinitialization logic of an indicator or subscribe to an event when it's happening? If there is not, please consider adding it, to me it seems like a core feature missing. Especially since you have introduced new API features like changing chart settings and colours.
Replies
Jiri
21 Feb 2019, 11:59
Hi Panagiotis,
For example, if I have an indicator that overrides chart colour, or setting (showing grid let's say) I would like to revert to default state once the indicator is detached from the chart. Or let's say I have something more complex, like an indicator which uses multiple threads, right now I have to make it check if parent thread is still alive, instead I could simply kill them when it's being detached.
@Jiri
PanagiotisCharalampous
21 Feb 2019, 14:04
Hi Jiri,
Thanks, I have forwarded your suggestion to the product team.
Best Regards,
Panagiotis
@PanagiotisCharalampous
PanagiotisCharalampous
21 Feb 2019, 10:05
Hi Jiri,
At the moment there is no such feature. Can you give me a couple of use cases where this would be useful for you?
Best Regards,
Panagiotis
@PanagiotisCharalampous