Changing from Colors to Color in Code

Created at 03 Nov 2024, 05:19
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!
BU

bunglingbunny

Joined 03.11.2024

Changing from Colors to Color in Code
03 Nov 2024, 05:19


Hello

 I am new to cTrader and it's coding techniques. I am trying to change the below code as Colors seem to be obsolete. However, I receive the below error. What does it mean? How can I fix it?


@bunglingbunny
Replies

PanagiotisCharalampous
04 Nov 2024, 07:13

Hi there,

You should use a string e.g. “Red”, to define a default color.

Best regards,

Panagiotis


@PanagiotisCharalampous

bunglingbunny
05 Nov 2024, 10:58 ( Updated at: 05 Nov 2024, 11:20 )

RE: Changing from Colors to Color in Code

PanagiotisCharalampous said: 

Hi there,

You should use a string e.g. “Red”, to define a default color.

Best regards,

Panagiotis

Thanks. Is it possible to show an example in couple of lines of code as to how the existing code should be changed? That will be a great help.


@bunglingbunny