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".
Figure 1. The TSI_CCI indicator
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/7049
The TSI_MACD indicator with the timeframe selection option available in input parameters.TSI_MACD
A TSI oscillator based on the values of the MACD histogram, implemented with its own signal line in the from of a colored cloud.