OPEN-SOURCE SCRIPT
[KTY] Auto Support & Resistance

[KTY] Auto Support & Resistance
Automatically detects and displays key support and resistance levels
based on pivot highs and lows.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔑 Key Features
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ Auto S/R Detection
Scans recent price action using pivot analysis
and plots up to 5 resistance and 5 support levels automatically.
Resistance (Red): Price zones where selling pressure tends to increase
Support (Green): Price zones where buying pressure tends to increase
Levels are calculated from wick-based pivot highs and lows,
capturing the most structurally significant price reactions.
Price values are displayed to the right of each level
for quick reference.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📖 How to Use
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1️⃣ Bounce near support → higher chance of upward move
2️⃣ Rejection near resistance → higher chance of downward move
3️⃣ Break and retest → check for S/R flip (role reversal)
🔄 S/R Flip
- Broken support may act as new resistance
- Broken resistance may act as new support
- Watch for price reaction at previous levels after breakout
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔧 Settings
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Show Support & Resistance: Toggle visibility on/off
Resistance Color: Customize resistance line color (default: red)
Support Color: Customize support line color (default: teal)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 Alerts
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Resistance Touch: Triggers when price reaches the nearest resistance level
Support Touch: Triggers when price reaches the nearest support level
Touch detection uses a 0.1% tolerance zone
to account for near-misses and wicks.
Setup: ALT + A → Select 【Auto Support & Resistance】→ Create alert
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ Disclaimer
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This indicator is an analysis tool, not a trade signal service.
Based on historical pivot data — does not guarantee future price reactions.
Strong trends may break through S/R levels easily.
All trading decisions and associated risks are solely your responsibility.
Automatically detects and displays key support and resistance levels
based on pivot highs and lows.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔑 Key Features
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ Auto S/R Detection
Scans recent price action using pivot analysis
and plots up to 5 resistance and 5 support levels automatically.
Resistance (Red): Price zones where selling pressure tends to increase
Support (Green): Price zones where buying pressure tends to increase
Levels are calculated from wick-based pivot highs and lows,
capturing the most structurally significant price reactions.
Price values are displayed to the right of each level
for quick reference.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📖 How to Use
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1️⃣ Bounce near support → higher chance of upward move
2️⃣ Rejection near resistance → higher chance of downward move
3️⃣ Break and retest → check for S/R flip (role reversal)
🔄 S/R Flip
- Broken support may act as new resistance
- Broken resistance may act as new support
- Watch for price reaction at previous levels after breakout
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔧 Settings
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Show Support & Resistance: Toggle visibility on/off
Resistance Color: Customize resistance line color (default: red)
Support Color: Customize support line color (default: teal)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🔔 Alerts
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Resistance Touch: Triggers when price reaches the nearest resistance level
Support Touch: Triggers when price reaches the nearest support level
Touch detection uses a 0.1% tolerance zone
to account for near-misses and wicks.
Setup: ALT + A → Select 【Auto Support & Resistance】→ Create alert
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚠️ Disclaimer
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
This indicator is an analysis tool, not a trade signal service.
Based on historical pivot data — does not guarantee future price reactions.
Strong trends may break through S/R levels easily.
All trading decisions and associated risks are solely your responsibility.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
KTY | Kim Thank You 🙏
Professional trading indicators built from years of experience.
📱 Telegram
t.me/kimthankyou
🌐 Website
kimthankyou.com
Professional trading indicators built from years of experience.
📱 Telegram
t.me/kimthankyou
🌐 Website
kimthankyou.com
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.
Skrypt open-source
W zgodzie z duchem TradingView twórca tego skryptu udostępnił go jako open-source, aby użytkownicy mogli przejrzeć i zweryfikować jego działanie. Ukłony dla autora. Korzystanie jest bezpłatne, jednak ponowna publikacja kodu podlega naszym Zasadom serwisu.
KTY | Kim Thank You 🙏
Professional trading indicators built from years of experience.
📱 Telegram
t.me/kimthankyou
🌐 Website
kimthankyou.com
Professional trading indicators built from years of experience.
📱 Telegram
t.me/kimthankyou
🌐 Website
kimthankyou.com
Wyłączenie odpowiedzialności
Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.