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

Fig. 1. The Swing_line_HTF indicator