I use an indicator which draw a line and text for the NYSE Closing Hour. I would like to change the font size of the drawed text to arial 10 (at the moment it delivers the text with font size 14).
Any idea where and how to set the right parameter?
Here is the specified passage in the code:
public class ClosingPrice : Indicator
{NinjaTrader.Gui.Tools.SimpleFont myFont = new NinjaTrader.Gui.Tools.SimpleFont("Arial", 10) { Size = 10, Bold = false };
_______________
if ( close >= 0 ) //Time at or past the Close
{
Draw.Text(this, "NYSE Close", userText, (CloseTextHorizontal), o+(CloseTextCenter*TickSize),PlotBrushes[0][0]);
// Draw.Text(this, "NYSE Close", "Close", (CloseTextHorizontal), o+(CloseTextCenter*TickSize),PlotBrushes[0][0]);
}
if ( close <= 0 ) //Time at or past the Close
{
Draw.Text(this, "NYSE Close", userText, (CloseTextHorizontal), o+(CloseTextCenter*TickSize), Brushes.Purple);
}
Thanks,
Andre

Comment