Monospaced fonts

Created at 07 Jan 2025, 09:29
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!
VO

volkov.alexandro

Joined 01.02.2019

Monospaced fonts
07 Jan 2025, 09:29


To show some trading info on my chart I use Chart.DrawStaticText() method.

It would be fine if I could apply any monospaced font like “consolas” so that tabulated data may be aligned correctly.

Is there any good solution to do that?


@volkov.alexandro
Replies

firemyst
08 Jan 2025, 00:26 ( Updated at: 08 Jan 2025, 08:29 )

Not natively within calgo and the ChartText object as they don't allow for font face selection. 

For a possible work around, you could try creating your own Label and then placing the label on the chart as a control.

Good place to start:

https://help.ctrader.com/ctrader-algo/guides/ui/Controls/

 


@firemyst