Ohh problem solved
I have to set this
#property indicator_type1 DRAW_COLOR_LINE //BELOW IS WRONG #property indicator_type1 DRAW_LINE
You need to 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
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
I'm practicing coding MQL5.
Below is a simple RSI indicator.
I added a logic to change color but the line won't change.
Below are the buffers initialization code
Below is where the signal and change color code
Could any one please help? Thank you
below is the full code