TradingView
c073
Apr 19, 2019 7:27 AM

Have you heard about tower line? 

Description

It's something about two close price reverse.
It draw within bar.
Rule is within previous bar but higher than previous second bar.(In upmove)
Or within previous bar but lower than second previous bar.(In downtrend)
The within move is all flat.

All within bar's price is same when price first stop move.
Chart looks like this.
The interesting thing is that when price break the within move or just reverse.
It draw two colow on one candlestick line.(It's exactly two small candle body together)

i.imgur.com/zHxLtKQ.png
This chart is just similar. Not very correct.
And I don't know where this "tower chart" come from.
Such a mysterious thing.
Comments
c073
That code on comment is also other guy's code. I'm very not familar with this kind of chart.
Today I'v done the research. The tower line have another version which called the ghost line. (aka Chinese people call it "ghost change face" it just a modified version of tower line.)
I just find a way to draw tower line which is the rule under this comment.
I'v writen the rule to exclude U1&D1. The price left is small sideway which is within previous "two bar range"
So that's fine we just color it and create some rule then tower line is here~!
Notice that we should care this UP-Down-UP / Down-UP-DOWN
These 3 line all makes a break.
1st break close[1] and close [2] 2nd break close[1] and close [2] too. Then 3rd break close[1] & close [2] //It's a small swing which every bar in these 3bar all breaks previous 2bar's range.
The tower pattern appear as 1 up break then next is down break then up break again. The tower's color should be fixed if you want it to be ghost line style.
Ghost line style maybe is just a myth but it looks great!
Tower line's break is just change color with previous full box.
The ghost line still makes a same level of same color. e.g two double color bar. second break up. The second bar's lower is at the same level of previous box. But tower line's lower color is at the top of previous box.
c073
Maybe just write a condition which exclude reverse&continue move then all other kind move is within move! It's easier!!
c073
I see another guy writen the enhanced tower line but through his chart looks like very correct but I found it still have some problem.
It even violated the very main reverse rule. IDK why maybe because their chart is complex so they made the error what ever I gotcha research the best way to draw this kind of chart
c073
The definitely rules.
1. close>close[1] and close>close[2] //for upmove
2. reverse 1. for down move.
3. The special within move which must down up down up .... after up move(rule 1) and be up down up down .... after down move.(rule 2)
study("Tower Line")
U1=close>=close[1] and close>=close[2] ? 1 : 0
D1=close<=close[1] and close<=close[2] ? 1 : 0
U2=U1 and close<=close[1] and close>=close[2]
U3=U2 and close>=close[1] and close<=close[2]
U4=U3 and close<=close[1] and close>=close[2]
U5=U4 and close>=close[1] and close<=close[2]
U6=U5 and close<=close[1] and close>=close[2]
U7=U6 and close>=close[1] and close<=close[2]
U8=U7 and close<=close[1] and close>=close[2]
U9=U8 and close>=close[1] and close<=close[2]
U10=U9 and close<=close[1] and close>=close[2]
U11=U10 and close>=close[1] and close<=close[2]
U12=U11 and close<=close[1] and close>=close[2]
D2=D1 and close>=close[1] and close<=close[2]
D3=D2 and close<=close[1] and close>=close[2]
D4=D3 and close>=close[1] and close<=close[2]
D5=D4 and close<=close[1] and close>=close[2]
D6=D5 and close>=close[1] and close<=close[2]
D7=D6 and close<=close[1] and close>=close[2]
D8=D7 and close>=close[1] and close<=close[2]
D9=D8 and close<=close[1] and close>=close[2]
D10=D9 and close>=close[1] and close<=close[2]
D11=D10 and close<=close[1] and close>=close[2]
D12=D11 and close>=close[1] and close<=close[2]

U1 & U2 is for main move
U2-U12 & D2-D12 is for tower's within move. It narrows the price move so it usually enough even for 2-3 rule. Because price can't be narrower and narrower. It must make some move to break out.
Maybe U2-U12 & D2-D12 can be write with if condition.

The similar tower chart is draw close&close[1] with red color when condition u1 or u2 or .... u12 met.
Down move is also drwan use close&close[1]
Then fill the bottom for opposite color when price first break up. Fill the top with opposite color when price first break down.
Just draw close[1]&close[2] when 1st up break and same close[1]&close[2] when price make 1st down break.

This is very similar to the tower line. And is enough to use in serious environment.

The better tower line is the chart with best red/blue(green)divide line in same block.
c073
I found that this chart need condition draw.
But tradingview seems don't have this function! I can't use plotcandle with iff. It just show error.
c073
You should never thing like that the tower line is just a line without high and low price.
It's totally wrong. The tower line is more like some kind of a price reverse chart with good looking appearance.
i.imgur.com/2L8fRhD.png Here is different with candlestick chart.
c073
It can be very similar to tower chart to always use current close & close[1] to draw candle body
The graph on descript is used this way. It just un-friendly for long within move which is flat top/bottom more than 3bar.
More