Zigzag2_R_Color indicator with the timeframe selection option available in the input parameters:
input ENUM_TIMEFRAMES TimeFrame=PERIOD_H4; // Indicator chart period (timeframe)
To provide correct operation of the indicator, place the compiled Zigzag2_R_Color.mq5 indicator file in terminal_data_folder\MQL5\Indicators.
Fig.1. Zigzag2_R_Color indicator