The XROC2_VG indicator with the timeframe selection option available in input parameters:
input ENUM_TIMEFRAMES TimeFrame=PERIOD_H4; // Indicator chart period (timeframe)
The indicator requires the XROC2_VG.mq5 indicator file. Place it in <terminal_data_folder>\MQL5\Indicators.
Fig. 1. The XROC2_VG_HTF indicator