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提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。