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

Figure 1. The HistVolatility_HTF indicator
Traduit du russe par MetaQuotes Ltd.
Code original : /ru/code/14351