The real author:
The indicator which uses the standard technical CCI indicator, displayed as the main red line and the ergodic CCI indicator drawn on the basis of the triple EMA averaging, displayed as the signal purple line.
The indicator uses SmoothAlgorithms.mqh library classes (must be copied to the terminal_data_folder\MQL5\Include). The use of the classes was thoroughly described in the article "Averaging Price Series for Intermediate Calculations Without Using Additional Buffers".
Fig.1 The FX_Sniper_Ergodic_CCI indicator
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/1542
The trend indicator drawn on the basis of a comparison of six levels of simple Moving Averages with High and Low of the current candlestickAverage Speed
Calculate Average Speed of price.