Indicator Wide/Narrow Spread bar displays the largest and the smallest bar over the selected period as colored candles.
It has three adjustable parameters:
Calculations:
where:
HL = High - Low
Max, Min - the maximum and minimum HL within the Range

Translated from Russian by MetaQuotes Ltd.
Original code: /ru/code/23535