change indicator parameters on a bar event (bot)

Created at 20 Aug 2020, 17:01
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!
TW

twoheartzin1soul

Joined 24.01.2020

change indicator parameters on a bar event (bot)
20 Aug 2020, 17:01


Is it possible to change period to an indicator differently from onstart event?? example change on an event monthly bar, period from 10 to 100?

@twoheartzin1soul
Replies

PanagiotisCharalampous
21 Aug 2020, 08:23

Hi twoheartzin1soul,

No, you will need to reinitialize the indicator with the new parameters.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

twoheartzin1soul
21 Aug 2020, 16:42

RE:

PanagiotisCharalampous said:

Hi twoheartzin1soul,

No, you will need to reinitialize the indicator with the new parameters.

Best Regards,

Panagiotis 

Join us on Telegram

 


 
thank you very much for the answer, ok, but can I reintialize the indicator in a specific event or do I have to switch the bot off and on again?

@twoheartzin1soul

PanagiotisCharalampous
21 Aug 2020, 16:47

Hi twoheartzin1soul,

You do not need to switch the cBot off to do this.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous