disabling indicator from code

Created at 15 Jun 2017, 15:55
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!
CE

Cezary

Joined 28.05.2014

disabling indicator from code
15 Jun 2017, 15:55


Hi,

I have developed an indicator which shows several instances of IndicatorDataSeries.

I don't need all of them at the same time but depending on current situations.

How can I disable some of them programatically ?

 

 

Regards,

Cezary


@Cezary
Replies

croucrou
16 Jun 2017, 19:53

You mean, you want to be able to manually turn on or off the series, to be visible or invisible on the chart?

Make a separate bool parameter for each series.


@croucrou

Cezary
16 Jun 2017, 22:08

not manually

I want the indicator to make some series invisible itself.

I dont want to do that manually because I have >20 series


@Cezary

croucrou
17 Jun 2017, 01:11

Why wouldn't you specify "if"conditions for the situations?


@croucrou