OPEN-SOURCE SCRIPT
Swing High/Low Support Resistance

This indicator detects recent swing highs and swing lows using Pine Script pivots and marks them with visible chart labels. These points highlight potential turning areas in price action and can help identify short-term support or resistance for intraday or swing trading.
How to Apply
Choose Your Timeframe:
Apply to any intraday or swing timeframe; shorter lengths show more frequent pivots.
Set Sensitivity:
Use the “Swing Detection Length” input to adjust how many bars define a pivot, making swings more or less sensitive to price action.
How to Analyze
What Traders Should Watch
Features Included
Compliance Notes
Disclaimer
This indicator is for informational purposes only and does not constitute advice. Always do your own research and use proper risk management.
How to Apply
- Locate the indicator in TradingView’s “Indicators” library; search by its name or author.
- Click the star icon to mark it as a favourite for quick future access.
- Apply directly to your chosen chart and timeframe with a single click—no need to enter or paste code.
- Adjust the input parameters from the settings panel if desired to personalize swing sensitivity.
Choose Your Timeframe:
Apply to any intraday or swing timeframe; shorter lengths show more frequent pivots.
Set Sensitivity:
Use the “Swing Detection Length” input to adjust how many bars define a pivot, making swings more or less sensitive to price action.
How to Analyze
- Swing High Labels: Mark recent local peaks, suggesting resistance zones or possible reversal points.
- Swing Low Labels: Highlight recent bottoms, indicating support or bounce areas.
- Monitor labels for clustering or repeated appearance at similar levels, which may strengthen their importance as price reacts near those points.
- Track how price behaves after forming new pivots—multiple tests can affirm the relevance of a level.
What Traders Should Watch
- Price reaction at labeled areas: frequent tests may anticipate reversals or breakouts.
- Transition between higher highs/higher lows (uptrend) vs. lower highs/lower lows (downtrend).
- Combine the swing levels with other analysis methods, such as volume, RSI, or EMA, for better signal quality.
Features Included
- Dynamic swing high and low detection via confirmed pivots.
- Direct labeling on the chart for market structure clarity.
- No repainting—labels show only after complete formation.
- Fully automatic updates as price action unfolds.
- No promotional, external, or non-compliant elements; open source and safe for public or private use.
Compliance Notes
- No signals, buy/sell calls, financial advice, or performance claims.
- No hidden code, advertising, or off-platform contacts.
- Pure educational and analytical utility; adheres to all TradingView house rules and script publishing policies.
Disclaimer
This indicator is for informational purposes only and does not constitute advice. Always do your own research and use proper risk management.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.
Script open-source
Dans l'esprit TradingView, le créateur de ce script l'a rendu open source afin que les traders puissent examiner et vérifier ses fonctionnalités. Bravo à l'auteur! Bien que vous puissiez l'utiliser gratuitement, n'oubliez pas que la republication du code est soumise à nos Règles.
Clause de non-responsabilité
Les informations et publications ne sont pas destinées à être, et ne constituent pas, des conseils ou recommandations financiers, d'investissement, de trading ou autres fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.