DemoBufferPattern – indicator MetaTrader 5
A indicator to demo buffer-pattern: Candles + Fractals + ZigzagColor + ColorMaLine. It uses the folllowing drawing styles: DRAW_COLOR_CANDLES DRAW_ARROW DRAW_COLOR_ZIGZAG DRAW_COLOR_LINE //+——————————————————————+ //| Custom indicator initialization function | //+——————————————————————+ int OnInit() { //— indicator buffers mapping SetIndexBuffer( 0,P1B1,INDICATOR_DATA); SetIndexBuffer( 1,P1B2,INDICATOR_DATA); SetIndexBuffer( 2,P1B3,INDICATOR_DATA); SetIndexBuffer( 3,P1B4,INDICATOR_DATA); SetIndexBuffer( 4,P1BC,INDICATOR_COLOR_INDEX); SetIndexBuffer( 5,P2B1,INDICATOR_DATA); … Read more