TradingView
Mliv1979
٢٢ حزيران يونيو ٢٠٢٢ ٠٨:٣٩

Trend Lines 

Bitcoin / TetherUS PERPETUAL CONTRACTBinance

الوصف

Hello Everyone.

This is my first script on TV, hope you find it useful.

How it works?

- On each bar it finds last x (depending on your settings) higher and lower Pivot Points ( PP ).
- It searches for possible trend line from oldest PP to newest, once found it stops and draws the line.
- The higher the time frame the lower the number of PP needed. Play around with the number of PP and left/right bars needed to confirm a PP and you get different results.

For suggestions don't hesitate to contact me

ملاحظات الأخبار

Added line width

ملاحظات الأخبار

Updated how lines are found, now there should always be an uptrend line and a downtrend line

ملاحظات الأخبار

Added the option to display the lines as zones/channels.
Added alert conditions for entering, rejecting or breaking the zone (untested).

ملاحظات الأخبار

Wrong chart added in previous update
التعليقات
Moda-877
Could you add alert condition whenever upper/lower trendline is broken?
Mliv1979
@Mode_m-889, will try and make time to add it!
Mliv1979
@Mode_m-889, done, let me know if it's okay!
rianerafael22
Hello, how to get access to the indicator?
Mliv1979
@rianerafael22, you just add it to the chart.
OguzhanKa
please open code
OguzhanKa
Please new version perfect code
apus123
Very good indocator, very usefull
mfc3090
thanks
Fiddle_Eire
Great job man, found another similar but yours seems to be the best out there. Well done!
المزيد