PROTECTED SOURCE SCRIPT
SOZAY Advanced Trend Lines v6

“SOZAY Advanced Trend Lines v6”
It automatically draws on the chart:
Downtrends (pivot high → lower new high)
Uptrends (pivot low → higher new low)
It can place H (High) and L (Low) labels on pivot points.
The most recent trend line is solid, and older ones can be shown as dashed if you want.
To avoid too many lines, it only keeps the last X trends (you set this value).
What do the settings mean?
Left Bars / Right Bars
Defines how many bars to the left and right must be lower/higher for a bar to be considered a pivot.
Higher values = fewer but “bigger” trends.
Lower values = more frequent, shorter-term trends.
Maximum number of trends to draw
The maximum number of trend lines that will be kept on the chart (e.g. 50).
Show Pivot H / L labels
Turns the H and L labels on or off.
Draw downtrends (High)
Enables or disables downtrend lines that start from pivot highs.
Draw uptrends (Low)
Enables or disables uptrend lines that start from pivot lows.
Uptrend / Downtrend color
The colors of the lines (typically green for up, red for down).
Show old lines as dashed
The newest trend line is solid; the previous line(s) of the same type are shown as dashed.
In summary:
This script automatically draws all possible uptrends and downtrends using pivot logic so you don’t have to draw trend lines manually. You just use the settings to decide how selective it should be.
It automatically draws on the chart:
Downtrends (pivot high → lower new high)
Uptrends (pivot low → higher new low)
It can place H (High) and L (Low) labels on pivot points.
The most recent trend line is solid, and older ones can be shown as dashed if you want.
To avoid too many lines, it only keeps the last X trends (you set this value).
What do the settings mean?
Left Bars / Right Bars
Defines how many bars to the left and right must be lower/higher for a bar to be considered a pivot.
Higher values = fewer but “bigger” trends.
Lower values = more frequent, shorter-term trends.
Maximum number of trends to draw
The maximum number of trend lines that will be kept on the chart (e.g. 50).
Show Pivot H / L labels
Turns the H and L labels on or off.
Draw downtrends (High)
Enables or disables downtrend lines that start from pivot highs.
Draw uptrends (Low)
Enables or disables uptrend lines that start from pivot lows.
Uptrend / Downtrend color
The colors of the lines (typically green for up, red for down).
Show old lines as dashed
The newest trend line is solid; the previous line(s) of the same type are shown as dashed.
In summary:
This script automatically draws all possible uptrends and downtrends using pivot logic so you don’t have to draw trend lines manually. You just use the settings to decide how selective it should be.
Скрипт с защищённым кодом
Этот скрипт опубликован с закрытым исходным кодом. However, you can use it freely and without any limitations – learn more here.
Отказ от ответственности
Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.
Скрипт с защищённым кодом
Этот скрипт опубликован с закрытым исходным кодом. However, you can use it freely and without any limitations – learn more here.
Отказ от ответственности
Информация и публикации не предназначены для предоставления и не являются финансовыми, инвестиционными, торговыми или другими видами советов или рекомендаций, предоставленных или одобренных TradingView. Подробнее читайте в Условиях использования.