Docu CloudAttribute class

Created at 04 Mar 2020, 11:36
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!
SH

Shares4UsDevelopment

Joined 14.10.2018

Docu CloudAttribute class
04 Mar 2020, 11:36


Hi CTDN,

    [Cloud("Max", "Min")]

Works OK, but trying to change the opacity by using an instance does not work.

CloudAttribute cld = new CloudAttribute("Max", "Min");
cld.Opacity = 1;
cld.FirstColor = "FFFFFF";

A little elaboration about how the new CloudAttribute class works would be nice.

Keep up the good work.


@Shares4UsDevelopment
Replies

PanagiotisCharalampous
04 Mar 2020, 11:56

Hi A.R.

It is not supposed to work this way. You cannot change the opacity and color of the indicator by creating a new instance. Attributes are not meant to be changed at runtime.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous