PROTECTED SOURCE SCRIPT

SOZAY Advanced Trend Lines v6

18
“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.

Thông báo miễn trừ trách nhiệm

Thông tin và các ấn phẩm này không nhằm mục đích, và không cấu thành, lời khuyên hoặc khuyến nghị về tài chính, đầu tư, giao dịch hay các loại khác do TradingView cung cấp hoặc xác nhận. Đọc thêm tại Điều khoản Sử dụng.