NinjaScript > Educational Resources > Reference Samples > Indicator >

Changing fonts for draw objects

Print this Topic Previous pageReturn to chapter overviewNext page

Drawing text on a chart can be useful for outputting information, but when all information is displayed with the same font and size it could be difficult to quickly see the key information. Since NinjaScript is based on C#, it is possible to use Font objects to create more styles for your text.

 

Key concepts in this example

Drawing text on a chart
Changing the font size on a chart

 

Important related documentation

DrawText()
Font

 

Import instructions

1.Download the file contained in this Help Guide topic to your PC desktop
2.From the Control Center window, select the menu File > Utilities > Import NinjaScript
3.Select the downloaded file and click Import.

 

SampleChangeFont_NT7.zip