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