void CreateCustomIndicator(ComplexShape rootShape) { rootShape.Collection.Clear(); //remove old shapes EllipseShape el = new EllipseShape(new RectangleF2D(0, 0, 100, 100)); //ellipse BoxShape box = new BoxShape(new RectangleF2D(20, 40, 60, 20)); //horz box box.BeginUpdate(); box.Appearance.ContentBrush = new SolidBrushObject(Color.White); box.Name = "horz"; box.EndUpdate(); el.BeginUpdate(); el.Name = "el"; el.Appearance.ContentBrush = new SolidBrushObject(Color.Red); el.EndUpdate(); rootShape.AddRange(new BaseShape[] { el, box }); }