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.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
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
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.