I have tried but failed using:
Pen OutLinePen = new Pen(Brushes.Black);
OutLinePen.DashStyle = DashStyle.Solid;
DrawRectangle(string tag, bool autoScale, int startBarsAgo, double startY, int endBarsAgo, double endY, OutLinePen, Color areaColor, int areaOpacity)
OutLinePen.Dispose();
Comment