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.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。