Code: Select all
https://www.mql5.com/en/code/66864Code: Select all
SetIndexBuffer(0, Up1, INDICATOR_DATA); SetIndexStyle(0, DRAW_HISTOGRAM,EMPTY,inpHistWidth); SetIndexBuffer(1, Dn1, INDICATOR_DATA); SetIndexStyle(1, DRAW_HISTOGRAM,EMPTY,inpHistWidth); SetIndexBuffer(2, Up2, INDICATOR_DATA); SetIndexStyle(2, DRAW_HISTOGRAM,EMPTY,inpHistWidth); SetIndexBuffer(3, Dn2, INDICATOR_DATA); SetIndexStyle(3, DRAW_HISTOGRAM,EMPTY,inpHistWidth); SetIndexBuffer(4, Mid, INDICATOR_DATA); SetIndexStyle(4, DRAW_HISTOGRAM);Code: Select all
#property indicator_color1 clrGreen #property indicator_color2 clrRed#property indicator_color3 clrLimeGreen#property indicator_color4 clrSandyBrown#property indicator_color5 clrDarkGray