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.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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?