How to automate the color of the rectangle drawn by the indicator?

Created at 06 Aug 2020, 10:18
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!
FA

fang0092

Joined 08.06.2019

How to automate the color of the rectangle drawn by the indicator?
06 Aug 2020, 10:18


I want the rectangle that is automatically drawn by the indicator to use the color that I last used on the objects.

How do I input it inside the Chart.DrawRectangle()?


@fang0092
Replies

PanagiotisCharalampous
06 Aug 2020, 10:22

Hi fang0092,

Do you ask how to determine the color of the rectangle that will be drawn using DrawRectangle()?

Best Regards,

Panagiotis 

Join us on Telegram

 


@PanagiotisCharalampous

fang0092
06 Aug 2020, 10:42 ( Updated at: 21 Dec 2023, 09:22 )

RE:

PanagiotisCharalampous said:

Hi fang0092,

Do you ask how to determine the color of the rectangle that will be drawn using DrawRectangle()?

Best Regards,

Panagiotis 

Join us on Telegram

 

Im wondering if I can link the color I use for the objects (below) to the color argument DrawingRectangle() is asking for.


@fang0092

PanagiotisCharalampous
06 Aug 2020, 10:45

Hi fang0092,

Unfortunately this information is not accessible by the API.

Best Regards,

Panagiotis 

Join us on Telegram


@PanagiotisCharalampous