This indicator defines the flat and paints the found part in the colored rectangle.
Color rectangle - the color of the painted rectangle.
Bars in rectangle - the minimum allowable number of bars in the rectangle.
Density in % - flat density, is set as a percentage of the rectangle area.
The basic idea of this indicator is: determine the flat as a filling of price of a certain area on the chart.