i-SpectrAnalysis_CCI – indicator MetaTrader 5

Real author:

klot

The indicator exemplifies smoothing of price time series of the CCI indicator by means of filtration of harmonics of a greater order.

This approach can be applied for smoothening any indicators’ values. The main advantage of the method is a real absence of a delay.

Indicator input parameters:

//+----------------------------------------------+
//| Input parameters of the indicator            |
//+----------------------------------------------+
input int   CCIPeriod=14;
input ENUM_APPLIED_PRICE   CCIPrice=PRICE_MEDIAN;
input uint N = 7;      // Series length
input uint SS = 20;    // Smoothing coefficient
input int Shift=0;     // Horizontal shift of the indicator in bars

where:

  • N specifies series length (power of two);
  • SS – A smoothening coefficient in the resulting spectrum zeroes out frequency ratios exceeding set value. SS cannot exceed 2^N. CCI series fully repeats itself if SS = 2^N.
Alternative:  Alert Crossing Three MAs - indicator MetaTrader 5

library is required for the indicator operation.

Fig.1. i-SpectrAnalysis_CCI Indicator

Fig.1. i-SpectrAnalysis_CCI Indicator


📈 ROBOTFX MetaTrader Expert Advisors and Indicators to maximize profits and minimize the risks