Need help about tower line

מעודכן
U1 & D1 is for 2 bar break.
main stick is always drwan by close & close[1]

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[1]

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
i.imgur.com/fc5JiRG.png
הערה
Because I found that we can use condition in plotcandle
So it's should be workable to write a tower chart for tradingview.
Chart PatternsTechnical IndicatorstowertowercharttowerlineTWR

כתב ויתור