Deinitialization logic

Created at 20 Feb 2019, 19:23
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
Jiri's avatar

Jiri

Joined 31.08.2015

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.


@Jiri
Replies

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

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