The ColorSTD_Histogram 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 ColorSTD_Histogram.mq5 indicator file in terminal_data_folder\MQL5\Indicators.

Fig1. The ColorSTD_Histogram_HTF indicator