'Specified time range candles' indicator displays colored candles at a specified time interval (trading session) on the price chart.
Candles not falling within the specified range are displayed by the specified chart display type.
The indicator has three input parameters:

Fig. 1. Start hour of the trading session = 8, Session length = 5

Fig. 2. Start hour of the trading session = 0, Session length = 12
MetaQuotes Ltd tarafından Rusçadan çevrilmiştir.
Orijinal kod: https://www.mql5.com/ru/code/23114