There is a block "Round numbers detector", but if you only want to draw all of these rectangles on the chart, I think this is a job for some custom indicator