Changing fonts for draw objects

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Educational Resources > Reference Samples > Indicator >

Changing fonts for draw objects

Previous page Return to chapter overview Next 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

Text()
SimpleFont()

 

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 Tools > Import > NinjaScript
3.Select the downloaded file

 

SampleChangeFont_NT8.zip