AI-Powered Support & Resistance levels

Overview
This indicator automatically detects key support and resistance zones using a proprietary machine learning clustering algorithm applied directly to historical price action. Instead of static lines or manual drawings, the tool analyzes where price has historically concentrated and reacted — letting the data define the levels.
How It Works
- Data Collection — Gathers relevant price extremes from bullish and bearish candles within a configurable lookback window (default: 500 bars).
- Adaptive Zone Detection — A built-in optimization routine automatically determines the ideal number of zones by evaluating grouping quality across multiple configurations and selecting the most meaningful result.
- Intelligent Clustering — An unsupervised learning algorithm groups price points into clusters, surfacing the levels where the market showed the strongest historical reactions.
- Dynamic Zone Rendering — Zones are displayed with volatility-adjusted height and strength-based opacity:
- 🔴 Red zones = Resistance (above current price)
- 🟢 Green zones = Support (below current price)
- Each zone displays its upper and lower boundary prices.
- Stronger zones appear more prominent on the chart.
Key Features
- Fully adaptive — Zone count is determined algorithmically, not hardcoded.
- Flexible lookback — Match to your trading style:
- Full-history mode — Analyze up to 5000 bars for broader structural context.
- Manual zone adjustment — Add extra zones beyond the auto-detected optimum.
- Clean visuals — Color-coded, labeled, and volatility-scaled for any instrument and timeframe.
Recommended lookback settings:
- ⚡ Scalpers: 50–150 bars
- 📊 Day Traders: 150–300 bars
- 📈 Swing Traders: 300–500 bars
- 💼 Position Traders: 500–2000 bars
Underlying Principles
The indicator uses an unsupervised clustering technique — a category of machine learning that finds natural groupings in data without predefined labels. Applied to price data, it reveals where the market has concentrated activity, uncovering hidden support and resistance that traditional fixed-level methods may miss.
The number of zones is not arbitrary — a built-in optimization process evaluates multiple configurations and selects the one that best balances detail and clarity.
Zone dimensions are dynamically scaled to current market volatility, ensuring they remain proportional and readable across any asset and timeframe.
⚠️ Important Notes
- This is a technical analysis tool, not a signal generator. Zones represent areas of interest — always apply your own analysis and risk management.
- Past price reactions at identified zones do not guarantee future behavior.
- Settings should be tested and adapted to your own trading approach.
You can copy-paste this directly into the TradingView script description field. All **bold** → , all emphasis → , lists use
- /
- , and no markdown is used.
Overview
This indicator automatically detects key support and resistance zones using a proprietary machine learning clustering algorithm applied directly to historical price action. Instead of static lines or manual drawings, the tool analyzes where price has historically concentrated and reacted — letting the data define the levels.
How It Works
- Data Collection — Gathers relevant price extremes from bullish and bearish candles within a configurable lookback window (default: 500 bars).
- Adaptive Zone Detection — A built-in optimization routine automatically determines the ideal number of zones by evaluating grouping quality across multiple configurations and selecting the most meaningful result.
- Intelligent Clustering — An unsupervised learning algorithm groups price points into clusters, surfacing the levels where the market showed the strongest historical reactions.
- Dynamic Zone Rendering — Zones are displayed with volatility-adjusted height and strength-based opacity:
- 🔴 Red zones = Resistance (above current price)
- 🟢 Green zones = Support (below current price)
- Each zone displays its upper and lower boundary prices.
- Stronger zones appear more prominent on the chart.
Key Features
- Fully adaptive — Zone count is determined algorithmically, not hardcoded.
- Flexible lookback — Match to your trading style:
- Full-history mode — Analyze up to 5000 bars for broader structural context.
- Manual zone adjustment — Add extra zones beyond the auto-detected optimum.
- Clean visuals — Color-coded, labeled, and volatility-scaled for any instrument and timeframe.
Recommended lookback settings:
- ⚡ Scalpers: 50–150 bars
- 📊 Day Traders: 150–300 bars
- 📈 Swing Traders: 300–500 bars
- 💼 Position Traders: 500–2000 bars
Underlying Principles
The indicator uses an unsupervised clustering technique — a category of machine learning that finds natural groupings in data without predefined labels. Applied to price data, it reveals where the market has concentrated activity, uncovering hidden support and resistance that traditional fixed-level methods may miss.
The number of zones is not arbitrary — a built-in optimization process evaluates multiple configurations and selects the one that best balances detail and clarity.
Zone dimensions are dynamically scaled to current market volatility, ensuring they remain proportional and readable across any asset and timeframe.
⚠️ Important Notes
- This is a technical analysis tool, not a signal generator. Zones represent areas of interest — always apply your own analysis and risk management.
- Past price reactions at identified zones do not guarantee future behavior.
- Settings should be tested and adapted to your own trading approach.
You can copy-paste this directly into the TradingView script description field. All **bold** → , all emphasis → , lists use
- /
סקריפט להזמנה בלבד
רק משתמשים שאושרו על ידי המחבר יכולים לגשת לסקריפט הזה. יהיה עליך לשלוח בקשת גישה ולקבל אישור לשימוש. בדרך כלל, הגישה ניתנת לאחר תשלום. למידע נוסף, עקוב אחר ההוראות של היוצר בהמשך או צור קשר עם hajrashidimadfx ישירות.
TradingView לא ממליצה לשלם עבור סקריפט או להשתמש בו אלא אם כן אתה סומך לחלוטין על המחבר שלו ומבין כיצד הוא פועל. ייתכן שתוכל גם למצוא חלופות חינמיות וקוד פתוח ב-סקריפטים הקהילתיים שלנו.
הוראות המחבר
כתב ויתור
סקריפט להזמנה בלבד
רק משתמשים שאושרו על ידי המחבר יכולים לגשת לסקריפט הזה. יהיה עליך לשלוח בקשת גישה ולקבל אישור לשימוש. בדרך כלל, הגישה ניתנת לאחר תשלום. למידע נוסף, עקוב אחר ההוראות של היוצר בהמשך או צור קשר עם hajrashidimadfx ישירות.
TradingView לא ממליצה לשלם עבור סקריפט או להשתמש בו אלא אם כן אתה סומך לחלוטין על המחבר שלו ומבין כיצד הוא פועל. ייתכן שתוכל גם למצוא חלופות חינמיות וקוד פתוח ב-סקריפטים הקהילתיים שלנו.