PROTECTED SOURCE SCRIPT
SAPSAN TRADE: Trend Line

SAPSAN TRADE: Trend Line
This indicator automatically detects ascending and descending trend lines based on recent pivot highs and lows. It helps traders visually identify key levels of support and resistance, and provides alerts when a trend line is broken.
Key Features:
Automatic detection of trend lines using fractal highs and lows.
Customizable fractal length and minimum touches for drawing trend lines.
Differentiates between active and broken lines with color coding:
Red for descending lines
Green for ascending lines
Gray for broken lines
Automatic removal of broken lines after a configurable number of bars.
Alerts for:
Any trend line break
Descending trend line break
Ascending trend line break
Use Cases:
Identify potential breakout and reversal points.
Track the current trend direction.
Combine with other technical indicators for confirmation.
Inputs:
Fractal Length (Global High/Low): Sets the number of bars used to detect pivot points.
Remove broken line after N bars: Automatically clears broken lines after the specified number of bars.
Min. touches for trend line: Minimum number of pivot points required to draw a trend line.
Active line colors: Customize colors for ascending and descending trend lines.
Broken line color: Customize the color of broken trend lines.
This indicator automatically detects ascending and descending trend lines based on recent pivot highs and lows. It helps traders visually identify key levels of support and resistance, and provides alerts when a trend line is broken.
Key Features:
Automatic detection of trend lines using fractal highs and lows.
Customizable fractal length and minimum touches for drawing trend lines.
Differentiates between active and broken lines with color coding:
Red for descending lines
Green for ascending lines
Gray for broken lines
Automatic removal of broken lines after a configurable number of bars.
Alerts for:
Any trend line break
Descending trend line break
Ascending trend line break
Use Cases:
Identify potential breakout and reversal points.
Track the current trend direction.
Combine with other technical indicators for confirmation.
Inputs:
Fractal Length (Global High/Low): Sets the number of bars used to detect pivot points.
Remove broken line after N bars: Automatically clears broken lines after the specified number of bars.
Min. touches for trend line: Minimum number of pivot points required to draw a trend line.
Active line colors: Customize colors for ascending and descending trend lines.
Broken line color: Customize the color of broken trend lines.
受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由且不受任何限制地使用它 — 在此處了解更多資訊。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由且不受任何限制地使用它 — 在此處了解更多資訊。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。