#region Variables
// Wizard generated variables
private int myInput0 = 1; // Default setting for MyInput0
private System.Drawing.Font textFont;
#endregion
protected override void Initialize()
{
Add(new Plot(Color.FromKnownColor(KnownColor.Orange), PlotStyle.Line, "Plot0"));
CalculateOnBarClose = true;
Overlay = true;
PriceTypeSupported = false;
textFont = new Font("Arial", 16 );
}
protected override void OnBarUpdate()
{
if (ToTime(Time[0]) == 151500 )
DrawText( "test" + CurrentBar.ToString(),
false,
"Test Something",
0,
High[0] + 100 * TickSize,
0,
Color.Black,
textFont,
StringAlignment.Center,
Color.Transparent,
Color.Transparent,
0);
}
Thanks. You guys are great.

Comment