[KTY] Auto Support & Resistance 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.
Pine Script® indicator






















