OPEN-SOURCE SCRIPT
Support_V1

Credit: Concept by TradingLion · Pine Script v6 implementation
What it does
Plots horizontal support/resistance lines only at volatility-qualified pivot highs and lows — pivots where price moved at least ADR × Multiplier from the previous pivot. Shallow, noise-level swings are ignored. Nearby levels within Merge Within % are automatically collapsed into one. Only the most recent Max Pivots levels stay visible.
Settings
Setting What it controls
Max Pivots Max lines on chart at any time
Breakout Threshold ADR or fixed % used for breakout arrow signals
Merge Within % Collapses two levels that are closer than this % apart
Breakout % Threshold when using Percent mode for breakout signals
ADR Lookback Bars used to compute Average Daily Range
ADR Multiplier Scales the ADR — higher = only larger moves qualify as pivots
Extend Bars Right How far the line projects to the right of the current bar
How to use
Paste into TradingView Pine Editor → Add to chart
Start with defaults (ADR Lookback 20, Multiplier 1, Max Pivots 2)
Raise ADR Multiplier (e.g. 2) on volatile stocks to filter out noise
Raise Merge Within % (e.g. 5–10) in tight consolidations to keep one clean level
Extend Bars Right controls how far ahead the line projects — set to match your typical hold period in bars
What it does
Plots horizontal support/resistance lines only at volatility-qualified pivot highs and lows — pivots where price moved at least ADR × Multiplier from the previous pivot. Shallow, noise-level swings are ignored. Nearby levels within Merge Within % are automatically collapsed into one. Only the most recent Max Pivots levels stay visible.
Settings
Setting What it controls
Max Pivots Max lines on chart at any time
Breakout Threshold ADR or fixed % used for breakout arrow signals
Merge Within % Collapses two levels that are closer than this % apart
Breakout % Threshold when using Percent mode for breakout signals
ADR Lookback Bars used to compute Average Daily Range
ADR Multiplier Scales the ADR — higher = only larger moves qualify as pivots
Extend Bars Right How far the line projects to the right of the current bar
How to use
Paste into TradingView Pine Editor → Add to chart
Start with defaults (ADR Lookback 20, Multiplier 1, Max Pivots 2)
Raise ADR Multiplier (e.g. 2) on volatile stocks to filter out noise
Raise Merge Within % (e.g. 5–10) in tight consolidations to keep one clean level
Extend Bars Right controls how far ahead the line projects — set to match your typical hold period in bars
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.
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.