Need help about tower line

BINANCE:BTCUSDT   Bitcoin / TetherUS
U1 & D1 is for 2 bar break.
main stick is always drwan by close & close

If price is not u1 && d1
We use these rule.

If price after u1 then stop to break we still color it blue but make it flat top.
draw close & close

If price after d1 and stopped break we color it orange.

But the important thing is the color fill thing.
We need to adjust the color and fill some gap.

In figure A1.
The last box is lower than previous. We just color the price range which is lower than previous box to opposite color. e.g orange.
All box is red and last is with blue & orange color. (the price higher than the lower edge of previous box is still blue color)

Another annoy thing is when price up then stop then up then stop.
Which is the up move but with a flat box besides them.

Ahhhhhh it just makes me crazy!!! Maybe I'm too bad to write chart. >:3
Apr 24
Comment: Because I found that we can use condition in plotcandle
So it's should be workable to write a tower chart for tradingview.
Home Stock Screener Forex Screener Crypto Screener Economic Calendar Shows How It Works Chart Features Pricing House Rules Moderators Website & Broker Solutions Widgets Charting Solutions Lightweight Charting Library Help Center Refer a friend Feature Request Blog & News FAQ Wiki Twitter
Profile Profile Settings Account and Billing Refer a friend My Support Tickets Help Center Ideas Published Followers Following Private Messages Chat Sign Out