SMC Pro - Smart Money Concepts🎯 SMC Pro - Complete Smart Money Concepts Trading System with Trade Alerts
The Most Comprehensive SMC/ICT Indicator Built for Real Traders
After extensive research into what retail and prop firm traders actually need, I've created SMC Pro - a complete Smart Money Concepts indicator that solves the biggest problems with existing SMC tools.
🚀 What Makes This Different:
✅ COMPLETE TRADE SETUP ALERTS - Not just structure breaks! Get full trade setups with:
* Entry, Stop Loss & Target Prices
* Risk/Reward Calculations
* 5-Point Confluence Scoring
* Visual Trade Labels on Chart
✅ INTELLIGENT FILTERING - No more chart spam:
* Minimum structure size filter (ATR-based)
* Minimum bars between signals
* Volume confirmation for order blocks
* Clean, actionable signals only
📊 Core Features:
1. Market Structure Analysis
* Break of Structure (BOS) with smart filtering
* Change of Character (CHoCH) detection
* Clear directional bias identification
* Prevents excessive signal clustering
2. Order Blocks
* Volume-confirmed institutional zones
* Automatic mitigation tracking
* Entry points for trade setups
3. Fair Value Gaps
* ATR-based size filtering
* Automatic fill detection
* Confluence factor for trades
4. Liquidity Zones
* Buy-side & Sell-side liquidity mapping
* Sweep detection with alerts
* Target zones for trades
5. Risk Management Integration
* Automatic R:R calculation
* Position sizing guidance
* Minimum R:R filtering (default 2:1)
🎯 5-Point Trade Confluence System:
1. Market structure alignment
2. Recent structure break (BOS/CHoCH)
3. Order block at current price
4. Fair value gap support
5. Liquidity target available
Minimum score of 3/5 required for trade alerts (adjustable)
⚙️ Smart Settings:
* Swing Length: 10 (default) - adjust for sensitivity
* Min Bars Between Signals: 20 - prevents clustering
* Min Structure Size: 1.0 ATR - filters noise
* Min Confluence Score: 3/5 - quality control
* Target R:R: 2:1 minimum - proper risk management
📱 Alert Types:
* 🎯 Trade Setup Alerts - Complete entry/exit plans
* ✅ Structure Breaks - BOS & CHoCH notifications
* 📊 Order Block Touch - Price at key zones
* 💧 Liquidity Sweeps - Stop hunts detected
💡 Pro Tips:
* Start with default settings
* Use on 15m+ timeframes for cleaner signals
* Increase confluence requirement for prop firm trading
* Enable volume confirmation for higher quality OBs
* Dashboard shows real-time setup status
🔧 If You Get Too Many Signals:
* Increase Swing Length to 15-20
* Increase Min Bars Between to 30-50
* Increase Min Structure Size to 1.5 ATR
* Raise Min Confluence Score to 4 or 5
This indicator is the result of solving real problems traders face with SMC/ICT concepts. It's designed to give you clean, actionable trade setups - not just mark up your chart with zones.
Built with Pine Script v6 for maximum performance and reliability.
Trade with confluence. Trade with confidence. Trade smart. 🎯
樞軸點和水平
Supply & Demand Pro [Institutional]🎯 Overview
The most comprehensive Supply & Demand indicator on TradingView, designed for serious traders and prop firm professionals. Unlike traditional S&D indicators that just draw pretty zones, this system tracks actual performance metrics, provides entry/exit signals, and includes professional risk management tools.
❓ Why This Indicator?
After extensive research into what traders actually need (not just want), this indicator addresses the TOP complaints about Supply & Demand trading:
- ❌ "I don't know which zones to trust" → ✅ Each zone shows historical win rate
- ❌ "No clear entry/exit rules" → ✅ Multiple entry methods with visual R:R
- ❌ "Can't backtest effectiveness" → ✅ Full performance tracking
- ❌ "Too many false signals" → ✅ Quality filters and volume validation
🚀 Key Features
🎯 Professional Zone Detection
- Volume Profile Analysis (finds institutional accumulation/distribution)
- Swing Point Detection (classic pivot-based zones)
- Order Flow Analysis (coming in v2)
- Hybrid Mode (combines multiple methods)
📊 Performance Analytics
- Individual zone win rates
- Daily P&L tracking
- Account balance simulation
- Success/failure ratio for each zone
- Historical performance data
💼 Prop Firm Tools
- Daily loss limits (auto-stops trading)
- Position sizing controls
- Maximum concurrent positions
- Daily profit targets
- Clean reporting for evaluations
🎨 Entry & Risk Management
- Zone Edge entry (immediate)
- 50% Retracement entry (patient)
- Momentum Confirmation entry
- Visual Risk:Reward boxes
- Multiple stop loss methods (ATR, Fixed %, Zone-based)
📈 Advanced Features
- Auto-removes failed zones
- Volume confirmation requirements
- Strength-based zone ranking
- Smart alerts for high-probability setups
- Multi-timeframe compatibility
📋 How It Works
1. Zone Creation: Continuously scans for high-quality supply/demand zones using your selected method
2. Quality Filtering: Each zone must pass strength, volume, and historical performance filters
3. Visual Feedback: Zones display strength %, test count, and win rate directly on chart
4. Trade Signals: When price touches a zone, the system calculates entry, stop, and target
5. Performance Tracking: Every zone touch is tracked to build historical win rates
⚙️ Quick Settings Guide
For Beginners:
- Detection Method: "Swing Points"
- Min Zone Strength: 15%
- Risk:Reward: 2:1
- Entry Method: "Zone Edge"
For Advanced Traders:
- Detection Method: "Volume Profile"
- Min Zone Strength: 20%
- Min Win Rate: 50%
- Entry Method: "Momentum Confirm"
For Prop Firm Traders:
- Enable all Prop Firm Tools
- Set Daily Loss Limit to your drawdown rules
- Max Positions: 2-3
- Use "Professional" theme for screenshots
📊 What Makes This Different?
Traditional S&D Indicators:
- Draw zones based on one method
- No performance tracking
- No entry/exit rules
- Can't verify effectiveness
Supply & Demand Pro:
- Multiple detection methods
- Tracks win rate for EVERY zone
- Clear entry/exit signals
- Full backtesting capability
- Risk management built-in
🎓 Best Practices
1. Start Conservative: Use higher strength requirements (20%+) until familiar
2. Trust the Data: Zones with 3+ tests and 60%+ win rate are golden
3. Respect Risk Limits: The daily loss limit feature will save your account
4. Volume Matters: Zones with volume confirmation are significantly stronger
5. Be Patient: Wait for high-probability setups (check the win rate!)
🔔 Alert Options
- Zone Touch Alerts (with strength & win rate)
- High Probability Setups (60%+ win rate zones)
- Daily Limit Warnings
- Risk Management Alerts
💡 Pro Tips
- Combine with market structure for best results
- Higher timeframe zones are more reliable
- Watch for zones that align with round numbers
- Use partial profits feature to lock in gains
- Review daily performance to improve
🐛 Troubleshooting
- No zones appearing? → Lower Min Zone Strength to 10%
- Too many zones? → Increase strength requirement or enable filters
- Win rates not updating? → Zones need multiple tests to calculate
⚡ Performance Note
This indicator uses advanced calculations and may take a moment to load on lower-end devices. The comprehensive analytics are worth the wait!
🎁 Bonus Features
- 4 Professional themes
- Customizable dashboard
- R:R visualization
- Zone strength ranking
- Session-based filtering (coming soon)
📧 Support & Updates
This is an actively maintained indicator. Updates include:
- New detection methods
- Enhanced analytics
- Community-requested features
- Performance optimizations
⭐ If you find this indicator helpful, please leave a rating and comment with your results!
📌 Remember: No indicator is perfect. Always use proper risk management and never risk more than you can afford to lose.
SR-PrecisionZoneSR-PrecisionZone — Dynamic Support & Resistance Mapping
SR-PrecisionZone is a precision-engineered support and resistance zone indicator designed for traders who value structure, accuracy, and real-time adaptability. It intelligently detects clusters of pivot points to highlight price levels that have historically acted as strong support or resistance — and projects these zones into the current market with customizable sensitivity.
- Key Features
Dynamic Zone Construction
Automatically detects key support and resistance zones based on pivot clustering logic, with customizable width and minimum strength thresholds.
Strength-Weighted Transparency
Zone opacity reflects the number of pivot hits — the more respected the level, the more visible the zone becomes. This allows traders to instantly gauge the strength of each zone at a glance.
Real-Time Zone Development
Zones appear live as pivot criteria are met; no lag or historical-only rendering.
Breakout & Breakdown Detection
Automatic breakout/breakdown tags highlight when price leaves a zone, helping spot continuation or reversal setups.
Multi-Timeframe Adaptive
Works effectively on intraday, swing, and macro timeframes with a tunable lookback window.
Clean Visual Hierarchy
Support and resistance zones extend 10 bars beyond the current candle, with MA overlays plotted above zones for clear visibility.
- Inputs & Settings
Source: Choose between High/Low or Close/Open pivots
Maximum Channel Width (%): Controls how far apart pivots can be to qualify as a zone
Minimum Strength: Sets how many pivot hits are required for a zone to appear
Lookback Period: Adjusts how far back the script evaluates pivot clusters
Customizable Colors: Separate colors for support, resistance, and mid-zone overlap
Breakout Tags: Optional visual markers for when price breaks out of a zone
MA Overlays: Two optional moving averages (SMA/EMA) to provide additional context
- Ideal Use Cases
Identifying high-probability support/resistance levels
Spotting breakout or fakeout setups
Enhancing confluence in technical strategies
Filtering entries/exits based on structural zones
Real-Time Swing High/Low Detector with liquidity sweepThis script identifies the most important market structure points (swing highs/lows) and liquidity sweeps in a configurable and timeframe-adaptive manner.
By default:
It shows 5 recent swing highs and lows to keep your charts readable.
It detects and illustrates up to 3 Liquidity Sweeps (very close new highs/lows to earlier extremes).
It automatically adjusts how tight the sweep detection is based on your chart’s timeframe to balance precision and noise.
You can tweak all these numbers via the input settings panel to customize the indicator to your personal trading style and chart preferences
Configurable Parameters
Pivot Length (pivot_length)
What it does: Determines how many bars to the left and right the script looks at when identifying swing highs and lows.
Effect: Increasing this value results in fewer, more significant swings; decreasing it makes the indicator more sensitive and detects more swings.
Default: 5
Suggested: Adjust based on your trading timeframe and style to balance sensitivity and noise.
Show Labels (show_labels)
What it does: Toggles the display of swing labels such as HH, HL, LH, LL on the chart.
Effect: If enabled, the script marks swing points with their corresponding label for easier visual reference.
Default: true
Use: Turn off if you prefer a cleaner chart without textual swing indicators.
Show Current Levels (show_current_levels)
What it does: Toggles horizontal lines extending from the latest swing highs and lows.
Effect: Provides visual support/resistance zones on the chart.
Default: true
Use: Helpful for visualizing major price levels based on recent swings.
Max Swing Points (max_swings)
What it does: Limits the number of swing points stored and displayed.
Effect: Prevents chart clutter and performance issues by controlling history length.
Default: 20
Use: Increase for longer history; decrease for lighter charts.
Liquidity Sweep Threshold (liq_sweep_threshold_pc)
What it does: Defines the maximum percentage price difference allowed to consider a new high/low "very close" to the previous one, detecting a Liquidity Sweep.
Effect: Controls how sensitively the script detects these sweep points.
Default: Automatically set based on chart timeframe:
For timeframes below 1 hour: 0.05% (stricter, less tolerant)
For 1 hour and above: 0.1% (more tolerant)
Use: This dynamic setting ensures relevance of Liquidity Sweeps across different timeframes.
Liquidity Sweep Label Transparency (liq_sweep_alpha)
What it does: Controls the opacity of "Liquidity Sweep" labels, with 0 being fully opaque and 255 fully transparent.
Default: 10 (mostly opaque but slightly transparent)
Use: You can increase this value if you want the labels to be more subtle.
ZKThe indicator checks the price entry into the 0.618-0.786 zone to the Fibonacci lines and gives a buy signal at the exit
Combined Breakout Bands & KNN Trend Signal with Reversalsombined Breakout Bands & KNN Trend Signal – Brief Description
This custom TradingView indicator overlays two complementary systems—a Kalman-filtered breakout band and a K-Nearest-Neighbors (KNN) trend filter—and only flags directional moves when both agree. Green or red trend lines and band fills show the combined direction, while up/down triangles mark confirmed bullish or bearish breaks. Additionally, large circles highlight reversal points, triggering when the combined signal flips from bearish to bullish (long reversal) or bullish to bearish (short reversal). All smoothing, band width, and KNN parameters are fully adjustable via the input panel, giving you precise control over responsiveness and noise-rejection.
Cross-Symbol Price LevelsThis script enables you to map given price levels from a source symbol to the chart symbol. Originally intended for drawing Gamma Exposure levels from SPY onto ES and SPX.
Note that it uses the opening bar of the regular session to calculate the price conversion ratio.
(Developed with ChatGPT)
SlomTre by Cryptoingener)Choch Pattern Levels + Andean Oscillator — The Ultimate Signal Strength Indicator
This unique tool combines the powerful “Choch Pattern Levels” (Change of Character market structure patterns) with the original “Andean Oscillator” to provide next-level filtering and signal confirmation.
Choch Pattern Levels automatically detects key market structure shifts and plots reversal zones, using dotted lines and clear visual labels right on your chart.
Andean Oscillator analyzes market strength using three core components (Bull, Bear, Signal), giving an advanced perspective on trend power and momentum.
Key Features:
Whenever a Choch (Change of Character) signal is detected, the indicator instantly checks the position of the green line from the Andean Oscillator.
If the green line (“Bullish Component”) is above both other lines, a large green arrow (“Strong LONG”) appears on the chart.
If the green line is below both other lines, a large red arrow (“Strong SHORT”) is plotted.
Flexible parameters for any timeframe or trading style.
Visual clarity: all structure lines are displayed as dotted for easy zone recognition.
PQLPQL - Professional Quant Levels Indicator
A comprehensive support and resistance level plotting tool that allows traders to visualize multiple types of key price levels on their charts. Simply input your levels as comma-separated values (e.g., "HV, 22883.75, R1, 23000, S1, 22500") and the indicator will automatically plot and label them with customizable styling.
Key Features:
Support for multiple level types: HV (High Volume), Pivot Points, Psychological levels, Support/Resistance, Extended levels, and Clive's levels
Dual timeframe capability - plot both daily and weekly levels simultaneously
Fully customizable appearance - colors, line styles, widths, and label positioning
Clean, professional labeling with optional price display
Real-time current price display in top-right corner
Level Types Supported:
HV: High Volume levels
PIVOT: Standard pivot points
PSY: Psychological levels
R/S: Resistance and Support levels
EXT-R/EXT-S: Extended resistance and support
H/L: Clive's Resistance and Support levels
Perfect for traders who receive levels from external analysis or want to manually plot key price zones with professional formatting and clear visual distinction between level types.
This indicator streamlines the process of plotting multiple support and resistance levels while maintaining a clean, organized chart appearance.
Cryptokazancev Strategy PackCryptokazancev Strategy Pack
Комплексный инструмент для анализа рыночной структуры / Comprehensive Market Structure Analysis Tool
🇷🇺 Описание на русском
Cryptokazancev Strategy Pack by ZeeZeeMon - это мощный набор инструментов для технического анализа, включающий:
• Ордерблоки (Order Blocks) с настройкой количества и цветов
• Пивоты (Pivot Points) различных таймфреймов
• Рыночную структуру с зонами Фибоначчи (0.618, 0.786)
• Разворотные конструкции (пинбары и поглощения)
• Зоны интереса на основе скопления свингов
📊 Основные функции:
1. Ордерблоки
- Автоматическое определение бычьих/медвежьих OB
- Настройка максимального количества блоков (до 30)
- Кастомизация цветов
2. Пивоты
- Поддержка таймфреймов: Дневные/Недельные/Месячные/Квартальные/Годовые
- Уровни Camarilla (P, R1-R4, S1-S4)
3. Рыночная структура
- Четкое определение тренда (UP/DOWN)
- Ключевые уровни Фибо (0.618 и 0.786)
- Настройка глубины анализа (10-1000 баров)
4. Разворотные конструкции
- Обнаружение пинбаров
- Обнаружение поглощений
- Настройка чувствительности
5. Зоны интереса
- Алгоритм кластеризации свингов
- Настройка через ATR-мультипликатор
- Лимит отображаемых зон
🇬🇧 English Description
ZeeZeeMon Pack is a comprehensive market analysis toolkit featuring:
• Order Blocks with customizable count and colors
• Pivot Points for multiple timeframes
• Market Structure with Fibonacci zones
• Reversal patterns (pinbars and engulfings)
• Interest Zones based on swing clustering
📊 Key Features:
1. Order Blocks
- Auto-detection of bullish/bearish OB
- Configurable max blocks (up to 30)
- Custom color schemes
2. Pivot Points
- Supports: Daily/Weekly/Monthly/Quarterly/Yearly
- Camarilla levels (P, R1-R4, S1-S4)
3. Market Structure
- Clear trend detection (UP/DOWN)
- Key Fibonacci levels (0.618 & 0.786)
- Adjustable analysis depth (10-1000 bars)
4. Reversal Patterns
- Smart pinbar detection
- ATR-based engulfing filter
- Sensitivity adjustment
5. Interest Zones
- Swing clustering algorithm
- ATR-multiplier configuration
- Display limit (up to 10 zones)
⚙️ Technical Highlights:
• Built with Pine Script v5
• Performance-optimized
• Well-commented code
• Flexible settings system
⚠️ Важно / Important:
Индикатор в бета-версии. Тестируйте перед использованием в реальной торговле.
This is BETA version. Please test before live trading.
💬 Поддержка / Support:
Комментарии к скрипту / Script comments section
Previous Levels by HAZEDPrevious Day/Week/Month High/Low Levels with 50% Equilibrium
🎯 Key Features:
- Previous Period Levels: Automatically plots previous Day, Week, and Month highs and lows
- 50% Equilibrium Zones: Shows the midpoint between each period's high and low
- Precise Line Placement: Lines start from the exact bar where the high/low occurred (not period beginning)
- Clean Visual Design: Solid lines for key levels, semi-transparent for equilibrium zones
- Customizable Display: Toggle each timeframe independently with custom colors and styles
📊 How It Works:
The indicator identifies the previous period's high and low points, then draws horizontal lines starting from the exact time those levels were created. The 50% equilibrium levels mark the midpoint between each period's range, providing additional support/resistance reference points.
⚙️ Settings:
- Timeframe Controls: Enable/disable Daily, Weekly, Monthly levels
- Line Styles: Choose between solid, dashed, or dotted lines
- Color Customization: Set individual colors for each timeframe
- Label Options: Show/hide price values, adjust label size
- 50% Levels: Toggle equilibrium zones with semi-transparent styling
💡 Trading Applications:
- Support & Resistance: Previous highs/lows act as key S/R levels
- Breakout Trading: Monitor price action around these critical levels
- Mean Reversion: 50% equilibrium zones often act as magnet levels
- Multi-Timeframe Analysis: See how different timeframe levels interact
🔧 Technical Notes:
- Lines extend to the right for future reference
- Only shows levels when chart timeframe is equal or lower than the level timeframe
- Uses precise historical data to ensure accurate line placement
- Optimized for performance with clean code structure
Perfect for swing traders, day traders, and anyone using support/resistance analysis!
Feel free to leave feedback and suggestions for future updates!
Fibonacci Pivot Levels ( Daily ) AdvancedIt shows Tommorrow's Fibonacci Pivot levels as well in Advance. It uses daily time frame.
ICT Opening Gaps & EHPDA [LuxAlgo Modified]Modified version of LuxAlgo's original opening gap indicator to include NMOGs and NYOGs
Small Gap Down after Red Candle with Red-Middle Volumetric FillThis indicator highlights moments when price “gaps down” after a red candle — a sign that traders may have quickly lost confidence. It draws a colored box to mark the gap and keeps extending it until the price comes back up and “fills” the gap. The color of each box reflects how much trading activity happened during the red candle (more volume = brighter color). You can choose to hide filled gaps, show helpful labels, or keep your chart clean with just the most relevant info.
Gaps tend to act as magnets and could potentially serve as take-profit levels
[TRIX] Ultimate Key Levels and SessionsUltimate MTF Key Levels and Sessions - tired of having to map out key swing highs and lows across multi time frames, so I made an indicator that did it for me and stops when mitigated but keeps lines so you can also use for back testing. User can select up to 4 time frames for high / lows, overall sessions, and/or kill zones. All times are adjustable for kill zones and sessions.
TargetsLevels. ATR fib magic. Works on any index or stock. Must have extended hours turned on.
Generally breaking above/below blue lines can indicate a target of above or below levels.
Price Range Tracker by smaPrice Range Tracker by sma helps traders quickly visualize the current price’s position within a custom price range.
It calculates and displays the highest, lowest, and average price levels over a user-defined period (default: 50 bars).
What it does:
Draws dynamic horizontal lines for the maximum, average, and minimum price levels within the chosen period.
Shows labels next to each level, indicating how far they are from the current price in percentage terms.
Helps traders spot overbought/oversold conditions and potential range breakouts.
How to use:
Adjust the period to fit your timeframe and asset volatility.
Use the percentage distances to assess potential upside/downside from the current price.
Combine with your existing trend or reversal strategies for clearer decisions.
Colors and label distance can be customized to match your chart style.
Зміщена MA з урахуванням волатильності (ATR)This is an experimental script designed to mark potential entry points for spot or long futures trades.
It uses a moving average (SMA or EMA) that is dynamically shifted downward based on current ATR (volatility). When the price crosses above this adjusted MA, a potential long entry signal is generated.
A stoploss line is plotted below the adjusted MA — offset
Lorentzian Key Support and Resistance Level Detector [mishy]🧮 Lorentzian Key S/R Levels Detector
Advanced Support & Resistance Detection Using Mathematical Clustering
The Problem
Traditional S/R indicators fail because they're either subjective (manual lines), rigid (fixed pivots), or break when price spikes occur. Most importantly, they don't tell you where prices actually spend time, just where they touched briefly.
The Solution: Lorentzian Distance Clustering
This indicator introduces a novel approach by using Lorentzian distance instead of traditional Euclidean distance for clustering. This is groundbreaking for financial data analysis.
Data Points Clustering:
🔬 Why Euclidean Distance Fails in Trading
Traditional K-means uses Euclidean distance:
• Formula: distance = (price_A - price_B)²
• Problem: Squaring amplifies differences exponentially
• Real impact: One 5% price spike has 25x more influence than a 1% move
• Result: Clusters get pulled toward outliers, missing real support/resistance zones
Example scenario:
Prices: ← flash spike
Euclidean: Centroid gets dragged toward 150
Actual S/R zone: Around 100 (where prices actually trade)
⚡ Lorentzian Distance: The Game Changer
Our approach uses Lorentzian distance:
• Formula: distance = log(1 + (price_difference)² / σ²)
• Breakthrough: Logarithmic compression keeps outliers in check
• Real impact: Large moves still matter, but don't dominate
• Result: Clusters focus on where prices actually spend time
Same example with Lorentzian:
Prices: ← flash spike
Lorentzian: Centroid stays near 100 (real trading zone)
Outlier (150): Acknowledged but not dominant
🧠 Adaptive Intelligence
The σ parameter isn't fixed,it's calculated from market disturbance/entropy:
• High volatility: σ increases, making algorithm more tolerant of large moves
• Low volatility: σ decreases, making algorithm more sensitive to small changes
• Self-calibrating: Adapts to any instrument or market condition automatically
Why this matters: Traditional methods treat a 2% move the same whether it's in a calm or volatile market. Lorentzian adapts the sensitivity based on current market behavior.
🎯 Automatic K-Selection (Elbow Method)
Instead of guessing how many S/R levels to draw, the indicator:
• Tests 2-6 clusters and calculates WCSS (tightness measure)
• Finds the "elbow" - where adding more clusters stops helping much
• Uses sharpness calculation to pick the optimal number automatically
Result: Perfect balance between detail and clarity.
How It Works
1. Collect recent closing prices
2. Calculate entropy to adapt to current market volatility
3. Cluster prices using Lorentzian K-means algorithm
4. Auto-select optimal cluster count via statistical analysis
5. Draw levels at cluster centers with deviation bands
📊 Manual K-Selection Guide (Using WCSS & Sharpness Analysis)
When you disable auto-selection, use both WCSS and Sharpness metrics from the analysis table to choose manually:
What WCSS tells you:
• Lower WCSS = tighter clusters = better S/R levels
• Higher WCSS = scattered clusters = weaker levels
What Sharpness tells you:
• Higher positive values = optimal elbow point = best K choice
• Lower/negative values = poor elbow definition = avoid this K
• Measures the "sharpness" of the WCSS curve drop-off
Decision strategy using both metrics:
K=2: WCSS = 150.42 | Sharpness = - | Selected =
K=3: WCSS = 89.15 | Sharpness = 22.04 | Selected = ✓ ← Best choice
K=4: WCSS = 76.23 | Sharpness = 1.89 | Selected =
K=5: WCSS = 73.91 | Sharpness = 1.43 | Selected =
Quick decision rules:
• Pick K with highest positive Sharpness (indicates optimal elbow)
• Confirm with significant WCSS drop (30%+ reduction is good)
• Avoid K values with negative or very low Sharpness (<1.0)
• K=3 above shows: Big WCSS drop (41%) + High Sharpness (22.04) = Perfect choice
Why this works:
The algorithm finds the "elbow" where adding more clusters stops being useful. High Sharpness pinpoints this elbow mathematically, while WCSS confirms the clustering quality.
Elbow Method Visualization:
Traditional clustering problems:
❌ Price spikes distort results
❌ Fixed parameters don't adapt
❌ Manual tuning is subjective
❌ No way to validate choices
Lorentzian solution:
☑️ Outlier-resistant distance metric
☑️ Entropy-based adaptation to volatility
☑️ Automatic optimal K selection
☑️ Statistical validation via WCSS & Sharpness
Features
Visual:
• Color-coded levels (red=highest resistance, green=lowest support)
• Optional deviation bands showing cluster spread
• Strength scores on labels: Each cluster shows a reliability score.
• Higher scores (0.8+) = very strong S/R levels with tight price clustering
• Lower scores (0.6-0.7) = weaker levels, use with caution
• Based on cluster tightness and data point density
• Clean line extensions and labels
Analytics:
• WCSS analysis table showing why K was chosen
• Cluster metrics and statistics
• Real-time entropy monitoring
Control:
• Auto/manual K selection toggle
• Customizable sample size (20-500 bars)
• Show/hide bands and metrics tables
The Result
You get mathematically validated S/R levels that focus on where prices actually cluster, not where they randomly spiked. The algorithm adapts to market conditions and removes guesswork from level selection.
Best for: Traders who want objective, data-driven S/R levels without manual chart analysis.
Credits: This script is for educational purposes and is inspired by the work of @ThinkLogicAI and an amazing mentor @DskyzInvestments . It demonstrates how Lorentzian geometrical concepts can be applied not only in ML classification but also quite elegantly in clustering.
ICT Liquidity Pools SSL BSLParent Swings - ICT Liquidity Pools (BSL & SSL)
This indicator is designed to cut through the noise of the market and identify truly significant swing points. Instead of marking every minor high and low, it uses the powerful logic of ICT (Inner Circle Trader) breaker patterns to validate and draw only the "Parent Swings" that matter. These are the key liquidity pools that often act as the market's next target.
The Concept: Price Moves from Pool to Pool
A core concept taught by ICT is that price doesn't move randomly; it moves with purpose. The market is engineered to move from one pool of liquidity to the next.
Buy Side Liquidity (BSL): This is a pool of stop-loss orders resting just above a significant swing high. The market is often drawn upwards to "sweep" this liquidity.
Sell Side Liquidity (SSL): This is a pool of stop-loss orders resting just below a significant swing low. The market is often drawn downwards to sweep this liquidity.
This indicator identifies these key BSL and SSL levels after they have been confirmed by a shift in market structure, giving you a clear map of potential targets.
How It Works
The indicator doesn't just look for any swing high or low. It waits for a specific sequence of events to confirm that a swing is a "Parent Swing" and a valid liquidity pool:
Liquidity Sweep: First, it looks for a classic liquidity raid. For a significant high (BSL), it needs to see a swing high get taken out by a higher high. For a significant low (SSL), it needs to see a swing low get taken out by a lower low.
Market Structure Shift (MSS): After the liquidity sweep, the indicator waits for confirmation that the market's intention has changed. This happens when price breaks aggressively in the opposite direction, creating a breaker block pattern.
Confirmation: Only when both the liquidity sweep and the market structure shift are confirmed does the indicator draw the line, marking the swing as a valid BSL or SSL level.
How to Use This Indicator
The primary use for this indicator is to identify targets. Once a BSL (red line) or SSL (green line) is established, you can anticipate that the market will eventually make a run for that level.
If you are in a long position, the next BSL line above you can serve as a logical take-profit target.
If you are in a short position, the next SSL line below you can serve as a logical take-profit target.
The labels (BSL/SSL) will always stay with the current price action for active levels, making it easy to see your targets at a glance.
Settings
Pivot Lookback: Controls the sensitivity of the swing detection. A higher number will find larger, more significant liquidity pools.
Invalidation Threshold (Crossings): This is a key feature. It sets how many times the price must cross through a liquidity level before it's considered "used up" or invalidated. Once invalidated, the line will dim and the label will disappear, keeping your chart clean.
Disclaimer: This is a tool for technical analysis and should not be considered financial advice. Always use proper risk management and integrate this indicator with your own trading strategy.
Engulfing Zone with visualsThis indicator will visually show engulfing along with up arrow for bullish engulfing and down arrow for bearish engulfing. Combine this with your favorite oscillator and you can have a solid trading setup.
ICT Breaker BlocksICT Breaker Block Detector
This indicator automatically identifies and displays high-probability ICT (Inner Circle Trader) Breaker Blocks on your chart. It is designed to help traders spot key shifts in market structure where price is likely to react.
What It Does
The indicator's primary function is to find and draw both Bullish and Bearish Breaker Blocks. These are specific price action patterns that signal a potential reversal after a liquidity sweep.
Bullish Breaker Block (Green): Forms after a low is swept (creating a lower low) and the market structure shifts by breaking above the intermediate swing high. This broken swing high becomes the Bullish Breaker.
Bearish Breaker Block (Red): Forms after a high is swept (creating a higher high) and the market structure shifts by breaking below the intermediate swing low. This broken swing low becomes the Bearish Breaker.
Invalidation: The indicator also tracks these zones in real-time. If price trades completely through a breaker block, the zone is considered invalidated. It will stop extending, its color will change to gray, and an exclamation mark ! will be added to its label.
How It Functions
The script's logic is designed to precisely identify the ICT breaker pattern:
Liquidity Sweep: It first identifies a sequence where a recent swing high is taken out by a higher high (for a bearish setup) or a swing low is taken out by a lower low (for a bullish setup).
Market Structure Shift (MSS): After the sweep, it waits for a clear break in market structure. This occurs when price closes below the intermediate swing low (for a bearish breaker) or above the intermediate swing high (for a bullish breaker).
Drawing the Zone: Once the MSS is confirmed, the indicator draws a box around the range of the swing point that was broken. This box is the Breaker Block, which is then extended into the future to serve as a potential area of interest.
How to Use This Indicator
Settings
Pivot Lookback: This setting determines the sensitivity of the swing point detection. A higher number will identify larger, more significant market structure and result in fewer, but potentially stronger, breaker blocks. A lower number will identify smaller, more immediate patterns.
Color & Display Options: You can customize the colors for the bullish, bearish, and invalidated zones, as well as toggle the visibility of each type of breaker.
Trading Application
Traders can use these automatically drawn zones as high-probability Points of Interest (POI). The common application is to wait for price to return to the breaker block after it has formed. This retest can offer a potential entry opportunity in the direction of the market structure shift.
For a Bullish Breaker, a trader might look for a long entry when the price dips back into the green zone.
For a Bearish Breaker, a trader might look for a short entry when the price rallies back up into the red zone.
Disclaimer: This indicator is a tool to assist in technical analysis. It is not a standalone trading system and does not provide financial advice. Always use proper risk management and combine this tool with your own analysis and trading strategy.
Dynamic Pivot PointThis indicator calculates and displays dynamic pivot points (Pivot, Support, and Resistance levels) based on a selected timeframe. These levels help traders identify potential price reversal zones, support/resistance, and trend direction.
it calculates:
Support Levels (S1, S2, S3)
Resistance Levels (R1, R2, R3)
Dynamic Feature:
a pivot defined period ( default = 5). you can change .
You can choose a specific timeframe (pivotTimeFrame) for calculating pivot levels (e.g., Daily, Weekly, etc.).
Visibility Toggle:
You can turn the pivot levels on or off using the input toggle.
Color Scheme:
Pivot Line: White
Support Levels: Green (S1, S2, S3)
Resistance Levels: Red (R1, R2, R3)
How to Trade With It:
1. Support and Resistance Reversals:
Buy near support levels (S1, S2, S3) if price shows bullish reversal signals.
Sell near resistance levels (R1, R2, R3) if price shows bearish reversal signals.
2. Breakout Trading:
Break above R1/R2/R3 with strong volume may indicate a bullish breakout — consider long positions.
Break below S1/S2/S3 may signal a bearish breakout — consider short positions.
3. Trend Confirmation:
If price stays above Pivot and supports hold — trend is likely bullish.
If price stays below Pivot and resistances hold — trend is likely bearish.