Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 5 Indicator | CCI Color

The idea of the indicator

The principle of coloring the iCCI indicator line:

      //--- zero crossing        if(CCI_Buffer[i-1]<0.0 && CCI_Buffer[i]>=0.0)           CCC_Colors[i]=1.0;        if(CCI_Buffer[i-1]>0.0 && CCI_Buffer[i]<=0.0)           CCC_Colors[i]=0.0;        //---        if(CCI_Buffer[i]>=0.0)           CCC_Colors[i]=1.0;        else           CCC_Colors[i]=0.0;

MetaTrader Experts, Indicators, Scripts and Libraries

Rice. 1. Two iMA Formula

Remember: Oscillator signals must be confirmed with a trend indicator

39003