Multi-colored trend line
Use DRAW_COLOR_LINE
Documentation on MQL5: Custom Indicators / Indicator Styles in Examples / DRAW_COLOR_LINE
- www.mql5.com
DRAW_COLOR_LINE - Indicator Styles in Examples - Custom Indicators - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
Thanks Vladimir, that was the solution.
Hi, I've modified the built in 'Moving Average' indicator so that it should show a red line when the trend is going down and a green line when the trend is going up.
However, the line is always red whether the trend is going up or down.
Can anyone see where I'm goin wrong?