Indicator with custom painting (GDI)
Draw any graphical objects on the chart using the GDI+ library
Introduction
Access Graphics object
public override void OnPaintChart(PaintChartEventArgs args){ Graphics gr = Graphics.FromHdc(args.Hdc); }public override void OnPaintChart(PaintChartEventArgs args){ Graphics gr = Graphics.FromHdc(args.Hdc); gr.DrawLine(Pens.Red, 100,100,200,200); gr.DrawRectangle(Pens.Blue, 250, 100, 100, 100); gr.FillRectangle(Brushes.Yellow, 400, 100, 100, 100); Pen myPen = new Pen(Color.Green, 3); gr.DrawRectangle(myPen, 50, 50, 500, 200);}
Drawing a simple text

Market depth levels on chart

Last updated
Was this helpful?