force an indicator to refresh itself

Created at 16 Nov 2023, 06:43
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!
EY

eynt

Joined 08.05.2020

force an indicator to refresh itself
16 Nov 2023, 06:43


I suggest to make a way to force an indicator to refresh itself, just like “right click the chart > Refresh” does.

It is required in case a change was made to the indicator via added GUI controls and you want to have its effext via those controls.

 

Thanks


cTrader Automate
@eynt
Replies

firemyst
04 Dec 2023, 03:43 ( Updated at: 04 Dec 2023, 08:32 )

Why don't you just “nullify” your indicator object, and then recreate it?

You have to create and get the indicator data via code when you first start your cBot, so just do it again if you know there's a change.


@firemyst