Color Parameter

Created at 11 May 2020, 23: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!
EY

eynt

Joined 08.05.2020

Color Parameter
11 May 2020, 23:01


Is it possible for an indicator to get a parameter that represents a color? I tried the following but recived an error:

 

[Parameter(DefaultValue = Color.Yellow)]
public Color TextColor { get; set; }

Thanks


@eynt
Replies

PanagiotisCharalampous
12 May 2020, 09:00

Hi Yuval,

No this is not possible at the moment. The most common workaround is to get the color as text and then convert it to a color.

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

afhacker
12 May 2020, 09:31

Please vote for it: 

 


@afhacker