Trend Lines v2

Hello Everyone. After working on new and better trend lines script for couple of weeks, finally I am proud to publish Trend Lines v2.

How it works?

- On each bar it finds last 10 higher and lower Pivot Points ( PP ).
- from first bar to 10. PP it search if a trend line is possible
- for each it starts searching from the last PP .
- it check if drawing a trend line possible or not and also it's broken or not
- if it's broken then optionally it shows broken trend lines as dotted
- if it finds a continues trend line and stop searhing more and draw trend line (I did this to make the script faster, otherwise you may get error because of it needs time more than .2sec)
- the script makes this process for each PP

Important! after you add this tool to the chart you may need zoom-in and zoom-out to see all lines!

I thought a lot to make it free or not then I decided make it free and open source. you should know there is a lot of effort for this script, so if you think this is usefull please consider a donation ;)

This is an absolutely amazing piece of software and I will share with everyone I know. I just have one minor problem: when my scale is in auto mode, the chart gets squeezed when the trend lines are on. This doesn't happen with any other indicator. Here's a screenshot of this happening.

Also, suggestion: there should be descending support lines and ascending resistance lines, such as in wedge patterns like this: