Did you try that structure? If so please share. That can be interesting for other users. However, how will you modify the rectangle as new candles are closing it? That is the difficult part.