Spezifikation
I need an indictor/script that will draw exact horizontal trendlines.
I attached an image to show what I mean.
The purple horizontal lines show candlesticks which hit the same exact price point.
The lines which are to be automatically drawn can be OHLC as shown by the purple lines.
The lines may go through the High or Low but never solid candles.
The small blueish line shows the line going through only one solid candle which is okay.
The lines shouldn't exceed more than one solid candle, (I added the yellow line to show this), the yellow line goes through two solid candles.
Also, they must NOT be continuous lines which extend both ways forever.
Final requirement is that the the lines should not match a two different sides of candles (for ex: the top side of a candle can only match with other top sides of candles whether red or green, but cannot match with the bottom side unless the line can go through that bottom side and match with the top side of a candle as shown in the blue line in the attached image and vise versa)