AntonChaschin

Rangebar time

This indicator determines the time (in minutes) for which a bar of the Range Bar type was formed.
In order to avoid errors in the calculations, a weekend check is immediately carried out (one day if it is a holiday or two days if it is a weekend).
If there are more days off, then the information on the first bar after the weekend may be incorrect.

Индикатор определяет время (в минутах), за которое образовался бар типа RangeBar.
Cразу идет проверка на выходные дни (один день, если праздник или два дня, если выходные).
Если выходных больше, то информация на 1-ом баре, после выходных может быть некорректна.
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?