OPEN-SOURCE SCRIPT

Auto Trend Lines v1.0

2 178
This advanced Pine Script indicator automatically detects and draws support and resistance trendlines for any instrument based on two independent lookback periods—short-term and long-term—making it suitable for all types of traders. The indicator identifies pivot highs and lows for both user-configurable lookback lengths, draws trendlines from each anchor point to the current bar, and supports a visually intuitive chart by coloring and labeling each line type separately.

Key features:

Dual lookback: Choose separate short-term and long-term sensitivity for pivots and trendlines.
Customizable: Select the number of displayed lines, colors, and line widths to suit your preferences.



Auto-updating: Trendlines update dynamically with new pivots and extend to the latest bar.

This indicator is ideal for those who want to automate trendline analysis, spot key breakout and reversal areas, and streamline technical trading.

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

Thông tin và ấn phẩm không có nghĩa là và không cấu thành, tài chính, đầu tư, kinh doanh, hoặc các loại lời khuyên hoặc khuyến nghị khác được cung cấp hoặc xác nhận bởi TradingView. Đọc thêm trong Điều khoản sử dụng.