LonesomeTheBlue

Trend Lines v2

LonesomeTheBlue Wizard Atualizado   
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

optionally trend lines may be Solid or Dashed

optionally you may get rid of broken trend lines if you think it's crowded

and sometimes you may not see any trend line on the chart. this means you need to adjust the period for Pivot Points accordingly

also I made a video. if you watch this video you can see how the script works.


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 ;)

Enjoy!

Notas de Lançamento:
Important Update:
- "CHANGE BAR COLOR" option added. now able to change bar color when trendline was broken up or down.
- Alerts Added (for broken Trendlines)

A screenshot, how bar color changes when trendline was broken:
Notas de Lançamento:
Added Start Year, Month, Day. I did this because some users say they got "calculate takes too long to execute > 20000 ms" errow.

in current version now by default it starts calculation from 01.01.2020. You can set closer start date if you use small time frames like 3mins, 5mins, etc.

If you set start date accordingly, you will not get any error.

Enjoy!
Notas de Lançamento:
After I saw some people copy/paste this script and sell, I decided to make it lighter.

for "Trend Lines Pro" script please visit following page:
Notas de Lançamento:
Arrays used instead of individual variables for pivot points and the lines.
Added option for the line colors.
Notas de Lançamento:
updated

Script de código aberto

Dentro do verdadeiro espírito TradingView, o autor deste script publicou ele como um script de código aberto, para que os traders possam compreender e checar ele. Um viva ao autor! Você pode usá-lo gratuitamente, mas a reutilização deste código em uma publicação é regida pelas Regras da Casa. Você pode favoritá-lo para usá-lo em um gráfico.

Aviso legal

As informações e publicações não devem ser e não constituem conselhos ou recomendações financeiras, de investimento, de negociação ou de qualquer outro tipo, fornecidas ou endossadas pela TradingView. Leia mais em Termos de uso.

Quer usar esse script no gráfico?