OPEN-SOURCE SCRIPT
Cập nhật Precision Trendlines - Relevant Current TF

Precision Structural Trendlines (Current TF)
Overview
The Precision Structural Trendlines indicator is a high-performance price action tool designed for traders who rely on market structure and trend convergence. Unlike standard trendline scripts that clutter the chart with every possible connection, this indicator strictly follows professional structural rules—connecting Lower Highs for resistance and Higher Lows for support.
Key Features
Structural Integrity: The engine ensures that resistance lines are only drawn during bearish sequences (Lower Highs) and support lines during bullish sequences (Higher Lows), aligning with core Price Action principles.
Dynamic Relevance Filter: Solve the "web of lines" problem. By default, the script only shows trendlines that are currently relevant to price. As price moves away from old trends, they fade out, keeping your workspace clean.
Zero Drift Synchronization: Built using absolute time-anchoring (xloc.bar_time), ensuring that trendlines stay perfectly "glued" to the candle wicks regardless of how much you scroll or zoom.
Customizable Aesthetics: Choose between Random Dark Colors to easily distinguish overlapping trends or a Static Color for a unified look. Global width controls allow for instant visibility adjustments.
How to Use
Trend Confirmation: Use the Minimum Points setting. Set it to 2 for aggressive, early trend detection, or 3 to only see lines that have been validated by multiple touches.
Major vs. Minor Swings: Adjust the Pivot Strength. A value of 30 (default) captures significant intraday turns, while 20+ is ideal for identifying major swing structure.
Relevance Buffer: Tune the Price Buffer % to determine how close price must be to a historical trendline before it reappears on your chart.
Settings Breakdown
Minimum Points: Number of pivot points required to anchor a line.
Pivot Strength: The "look-left/look-right" requirement to confirm a peak or valley.
Validation Tolerance: The vertical buffer allowed for a 3rd point to "hit" the trendline.
Show Relevant Only: Toggles the visibility filter (highly recommended for high-volume traders).
Overview
The Precision Structural Trendlines indicator is a high-performance price action tool designed for traders who rely on market structure and trend convergence. Unlike standard trendline scripts that clutter the chart with every possible connection, this indicator strictly follows professional structural rules—connecting Lower Highs for resistance and Higher Lows for support.
Key Features
Structural Integrity: The engine ensures that resistance lines are only drawn during bearish sequences (Lower Highs) and support lines during bullish sequences (Higher Lows), aligning with core Price Action principles.
Dynamic Relevance Filter: Solve the "web of lines" problem. By default, the script only shows trendlines that are currently relevant to price. As price moves away from old trends, they fade out, keeping your workspace clean.
Zero Drift Synchronization: Built using absolute time-anchoring (xloc.bar_time), ensuring that trendlines stay perfectly "glued" to the candle wicks regardless of how much you scroll or zoom.
Customizable Aesthetics: Choose between Random Dark Colors to easily distinguish overlapping trends or a Static Color for a unified look. Global width controls allow for instant visibility adjustments.
How to Use
Trend Confirmation: Use the Minimum Points setting. Set it to 2 for aggressive, early trend detection, or 3 to only see lines that have been validated by multiple touches.
Major vs. Minor Swings: Adjust the Pivot Strength. A value of 30 (default) captures significant intraday turns, while 20+ is ideal for identifying major swing structure.
Relevance Buffer: Tune the Price Buffer % to determine how close price must be to a historical trendline before it reappears on your chart.
Settings Breakdown
Minimum Points: Number of pivot points required to anchor a line.
Pivot Strength: The "look-left/look-right" requirement to confirm a peak or valley.
Validation Tolerance: The vertical buffer allowed for a 3rd point to "hit" the trendline.
Show Relevant Only: Toggles the visibility filter (highly recommended for high-volume traders).
Phát hành các Ghi chú
Updated ShortnamePhát hành các Ghi chú
Updated screenshotMã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
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.
Mã nguồn mở
Theo đúng tinh thần TradingView, tác giả của tập lệnh này đã công bố nó dưới dạng mã nguồn mở, để các nhà giao dịch có thể xem xét và xác minh chức năng. Chúc mừng tác giả! Mặc dù bạn có thể sử dụng miễn phí, hãy nhớ rằng việc công bố lại mã phải tuân theo Nội quy.
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.