PROTECTED SOURCE SCRIPT

SAPSAN TRADE: Trend Line

31
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.

免責事項

これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。