技术文档MQL5参考标准程序库自定义图形CHistogramChartDrawBarDrawBarDrawBar将直方图列绘制为填充矩形。void DrawBar( const int x, // X坐标 const int y, // Y坐标 const int w, // 宽度 const int h, //高度 const uint clr, //颜色 )参数 x[in] 矩形左上点的X坐标。y[in] 矩形左上点的Y坐标。w[in] 矩形的宽度。h[in] 矩形的高度。clr[in] 矩形的颜色。DrawDataGradientBrush