Color test on the chart

Created at 09 Feb 2023, 18:08
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!
PI

pietramarek

Joined 09.02.2023

Color test on the chart
09 Feb 2023, 18:08


Hi I tryed to put some 3 variables to display on the chart, one next to another 

I have make one text, but I would like to make a different color for diffrent variables: 

var text = piecConverted + pietnascieConverted + trzydziesciConverted;
            Chart.DrawStaticText("Dupa", tekst, VerticalAlignment.Top, HorizontalAlignment.Left, Color.Green);

How to do this ?

I Woul like to have for example piecConverted= green, pietnascieConverted = red and trzydziesciConverted=yellow

They doesn;t have to be in one line. They can by one under the other

 

 


@pietramarek
Replies

PanagiotisChar
10 Feb 2023, 10:04

Hi there, 

This is not possible with this method. To achieve this, you would need to use Chart Controls and create a grid with TextBlocks.

Aieden Technologies

Need help? Join us on Telegram

Need premium support? Trade with us

 


@PanagiotisChar