Get an Atribute (Color, Line Style...) From Input Parameter in Cbot

10 Feb 2019, 04:37Get an Atribute (Color, Line Style...) From Input Parameter in Cbot#1
Rony Sitepuposts: 12since: 30 Jan 2017

Hello...

 

In the code i will make an object (eg : rectangle).

 i want to change it's color and linestyle as easy as possible 

 

i was thinking to make  an input parameter with all those attributes as shown below.

 

how do we do that..?

Keep in mind that this is in Cbot, not in indicator

 

Thanks in advance.

 

Attribute

11 Feb 2019, 10:28#2
Panagiotis Charalampousposts: 2610since: 13 Jan 2017

Hi Rony,

At the moment, cTrader Automate does not support these types as cBot parameters, so you will have to do it manually. You can use a string for color and convert it to a color inside the cBot and integer numbers for line style and thickness.

Let me know if this helps,

Best Regards,

Panagiotis


Head of Community Management at cTrader
11 Feb 2019, 10:59RE:#3
Rony Sitepuposts: 12since: 30 Jan 2017

Panagiotis Charalampous said:

Hi Rony,

At the moment, cTrader Automate does not support these types as cBot parameters, so you will have to do it manually. You can use a string for color and convert it to a color inside the cBot and integer numbers for line style and thickness.

Let me know if this helps,

Best Regards,

Panagiotis

Thank you...

 

i guess i have to do the work around as you have mentioned

 

Best regards

RKS