Moving Average in two color
Same as any colored line.
See also HOW CAN I hide CONNECTION lines of plots? (ttt) - MQL4 and MetaTrader 4 - MQL4 programming forum
One buffer has the value, color set to CLR_NONE so not shown on chart, (but in data window and pop up.)
Two buffers, one color each, with SetIndexLabel(i, NULL) so they don't show in data window.
if down: downBuffer[i]=value[i]; if(downBuffer[i+1]==EMPTY_VALUE) downBuffer[i+1]=value[i].
See also HOW CAN I hide CONNECTION lines of plots? (ttt) - MQL4 and MetaTrader 4 - MQL4 programming forum
Hi, I modified Custom Moving Average to draw in two color, but in displays a gaps when changing direction. How to fix it?