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 | Adaptable_CCI

Oscillator Adaptable_CCI. Along with the calculation price and period, this indicator, unlike the standard one, allows you to change parameters, such as calculation range, correction coefficient, and smoothing method.

It has seven configurable parameters:

  • Period (CCI period) - calculation period (as in standard CCI);
  • Applied price (CCI apply to) - calculation price (as in standard CCI);
  • Deviation period - calculation range;
  • Correction factor - correction coefficient (CCI price scale);
  • Method - calculation method;
  • Overbought - overbought level;
  • Oversold - oversold level.

Calculations:

CCI = (Price - mean) / (meandev * Correction factor)

where:

mean = MA(Applied price, Period, Method)  meandev = SumD / Deviation period  SumD - sum Abs(Applied price - Avg) within Deviation period  Avg = SMA(Applied price,Deviation period)  

MetaTrader Experts, Indicators, Scripts and Libraries

Fig 1. Default values (coincides with standard CCI)

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 2. EMA calculation method

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 3. SMMA calculation method

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 4. LWMA calculation method

MetaTrader Experts, Indicators, Scripts and Libraries

Fig. 5. Calculation range of 28 bars

21256

Best MetaTrader Indicators + Profitable Expert Advisors