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.
Script protegido
Esse script é publicada como código fechado. No entanto, você pode gerenciar suas escolhas de bate-papo. Por favor, abra suas Configurações do perfil
Aviso legal
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Script protegido
Esse script é publicada como código fechado. No entanto, você pode gerenciar suas escolhas de bate-papo. Por favor, abra suas Configurações do perfil
Aviso legal
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.