DrawStaticText

Created at 12 Feb 2019, 19:01
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!
2bnnp's avatar

2bnnp

Joined 12.02.2019

DrawStaticText
12 Feb 2019, 19:01


How does one draw a text for example in the top right of the chart with Chart.DrawStaticText?

or better, how could i make it to be adjustable with x and y inputs?

i have tried with the obsolete

ChartObjects.DrawText("Sample Text", "Sample Text", StaticPosition.TopRight);

but nothing happens at all.


@2bnnp
Replies

bart1
13 Feb 2019, 09:45

It works for me. Maybe you have a white background on the chart?

Default color text is white, try to add some color:

ChartObjects.DrawText("Sample Text", "Sample Text", StaticPosition.TopRight, Colors.Red);

 


@bart1