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.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
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
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.
Script de código abierto
Fiel al espíritu de TradingView, el creador de este script lo ha convertido en código abierto, para que los traders puedan revisar y verificar su funcionalidad. ¡Enhorabuena al autor! Aunque puede utilizarlo de forma gratuita, recuerde que cualquier republicación del código está sujeta a nuestras Normas internas.
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
Exención de responsabilidad
La información y las publicaciones no constituyen, ni deben considerarse como, asesoramiento o recomendaciones financieras, de inversión, de trading u otro tipo, proporcionadas o respaldadas por TradingView. Obtenga más información en Condiciones de uso.