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
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。