The indicator stores the tick from the terminal to an array. The type of the received ticks can be specified in the parameters:
Next, the tick array is displayed on the screen. During that the tick flag is displayed:
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/14667
The Adaptive Moving Average indicator with the timeframe selection option available in input parameters.AMA_3HTF
Three Adaptive Moving Average indicators from three different timeframes displayed on the same chart.