Automatic Restart / Reinitialize Indicator.

Created at 20 Jul 2022, 11:10
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!
K1

K100

Joined 04.11.2018

Automatic Restart / Reinitialize Indicator.
20 Jul 2022, 11:10


Hi.

Automatic Restart / Reinitialize Indicator.

I have an indicator which is referencing the time / X value of a vertical line. When the line is dragged forward and back in time I'd like the indicator recalculate based off the new index it has received. 

I already have the "Listener" and if I change a setting on the indicator it does recalculate using the new index but i'd like to avoid having to change a setting each time to invoke an update.

 

Is this functionality is possible ?

Thanks in advance.

H.


@K100
Replies

PanagiotisCharalampous
21 Jul 2022, 10:27

Hi K100,

To achieve this, you will need to manually execute the Calculate() for all bars. 

Best Regards,

Panagiotis 

Join us on Telegram and Facebook


@PanagiotisCharalampous