Indicator Rj_SlidingRange with the possibility to change the indicator timeframe in its input parameters.
input ENUM_TIMEFRAMES TimeFrame=PERIOD_H4; // Indicator chart period (timeframe)
For the indicator to operate, the Rj_SlidingRange.ex5 indicator must be added to the <terminal_data_directory>\MQL5\Indicators folder.
Fig 1. Indicator Rj_SlidingRange_HTF