MQL5 doesn't change color when signal change
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
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