I am writing a custom indicator based on the Hull Moving Average. I have the calculation of the moving average done and it displays nicely. The one thing I'm having a problem with is making the line color change depending on whether the line is going up or down. Any help on this will be highly appreciated.
- Parabolic SAR - Trend Indicators - Technical Indicators - Price Charts, Technical and Fundamental Analysis
- Parabolic SAR - Trend Indicators - Indicators - Charts - MetaTrader 5 for Android
- Parabolic SAR - Trend Indicators - Indicators - Chart - MetaTrader 5 for iPhone
There are many samples in the Code Base.See, for example https://www.mql5.com/en/code/mt4

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