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.
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarlo liberamente e senza alcuna limitazione – per saperne di più clicca qui.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script protetto
Questo script è pubblicato come codice protetto. Tuttavia, è possibile utilizzarlo liberamente e senza alcuna limitazione – per saperne di più clicca qui.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.