Chart.DrawStaticText

Created at 24 Nov 2023, 18:06
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!
CD

cDavid

Joined 24.11.2023

Chart.DrawStaticText
24 Nov 2023, 18:06


Hi, I have to insert two lines of text on the bottom left of the screen, one below the other. I am using

Chart.DrawStaticText("INFO"," info "+infoX  ,VerticalAlignment.Bottom, HorizontalAlignment.Right,Color.Lime);

and I would like to add below

Chart.DrawStaticText("INFO2"," info2 "+infoY  ,VerticalAlignment.Bottom, HorizontalAlignment.Right,Color.Lime);

all other places on the screen are occupied


Thank you


@cDavid
Replies

PanagiotisCharalampous
25 Nov 2023, 06:13

Reply to: Chart.DrawStaticText

Hi there,

Try something like this

          Chart.DrawStaticText("INFO"," info "+infoX +Environment.NewLine +  info2 "+infoY  ,VerticalAlignment.Bottom, HorizontalAlignment.Right,Color.Lime);

Regards,

Panagiotis


@PanagiotisCharalampous

cDavid
25 Nov 2023, 17:45 ( Updated at: 26 Nov 2023, 07:27 )

RE: Reply to: Chart.DrawStaticText

PanagiotisCharalampous said: 

Hi there,

Try something like this

          Chart.DrawStaticText("INFO"," info "+infoX +Environment.NewLine +  info2 "+infoY  ,VerticalAlignment.Bottom, HorizontalAlignment.Right,Color.Lime);

Regards,

Panagiotis

Fantastic!!!! A thousand thanks


@cDavid