Bar Spread Analyzer
The indicator displays maximum, minimum and average spread for each bar of the timeframe it is applied to. The spreads are displayed in the form of a histogram. For the current bar it also displays the last (current) spread, the sum of all spreads and their number. Data for each closed bar is saved in a file on the first tick of the next bar (or the current bar in case the indicator/terminal is restarted), so when the terminal is restarted the data is loaded back.