🤖 AI🔒 Protected
AI Support & Resistance
AI-driven detector that automatically finds and plots the strongest horizontal support and resistance levels from recent price pivots, no manual line-drawing required.
260KUses
22900Likes
0Comments
Live Demo — AI Support & Resistance applied to NIFTY 50 (illustrative)
PriceEMA(9)EMA(21)SMA(20)
What is AI Support & Resistance?
Automatically scans recent price action for swing points where price has repeatedly reversed, then plots the most significant horizontal levels directly on the chart.
How It Works
- Scans the last
lookbackbars for local pivot highs and lows. - Nearby pivots are clustered; levels tested multiple times score higher.
- Clusters are ranked by touch count, recency, and reaction size.
- Only the top
maxLevelsare kept and drawn, avoiding clutter. - Levels are re-evaluated as new bars form.
Parameters
| Parameter | Default | Description |
|---|---|---|
| lookback | 160 | Number of bars scanned for pivot highs/lows |
| maxLevels | 3 | Maximum number of ranked S/R levels displayed at once |
Signal Interpretation
- Price approaching a level from below typically acts as resistance.
- Price approaching a level from above typically acts as support.
- A clean break and close through a level suggests it's being invalidated and may flip role.
- Multiple rejections at the same level increase confidence it's a genuine interest zone.
- Levels near current price carry more actionable weight than distant ones.
Tips & Best Practices
- Combine with candlestick confirmation at the plotted level.
- Increase lookback on higher timeframes for structurally significant levels.
- Reduce maxLevels if the chart feels crowded intraday.
