Topics
Replies
Adal
29 Nov 2020, 16:54
RE:
firemyst said:
To hide the name of the indicator, you'll have to call it something different. cTrader takes the name off of whatever name you give the indicator when you create the new one in the Automate section of cTrader.
To hide the parameters, you have to do something like the following:
//Change from this [Parameter("Password1", DefaultValue = "secret1")] public string Pass1 { get; set; } [Parameter("Password2", DefaultValue = "secret1")] public string Pass2 { get; set; } //To this: //[Parameter("Password1", DefaultValue = "secret1")] public string Pass1 { get; set; } Pass1 = "secret1"; //[Parameter("Password2", DefaultValue = "secret1")] public string Pass2 { get; set; } Pass2 = "secret1";
The parameters won't show up in cTrader, but with them set to "public", anyone who's importing your calgo file can see the properties "Pass1" and "Pass2" and access them.
If you want to hide them so they can't be seen outside the class file, change them from public to private.
I think we didn't understand each other.
I want to hide parameters not from the parameter list but from the indicator chart. The proposed solution creates a class variable, which is defined during compilation time, the user cannot change it.
The second problem is hiding or changing the displayed name of the indicator. For example to display other text info in this place (top left corner).
@Adal
Adal
30 Nov 2020, 19:01
RE:
PanagiotisCharalampous said:
How I write in the question I need to hide or present another indicator name. Is it possible?
@Adal