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.
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
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
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。
オープンソーススクリプト
TradingViewの精神に則り、このスクリプトの作者はコードをオープンソースとして公開してくれました。トレーダーが内容を確認・検証できるようにという配慮です。作者に拍手を送りましょう!無料で利用できますが、コードの再公開はハウスルールに従う必要があります。
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
免責事項
これらの情報および投稿は、TradingViewが提供または承認する金融、投資、取引、またはその他の種類の助言もしくは推奨であることを意図したものではなく、またこれらに該当するものでもありません。詳細は利用規約をご覧ください。