Identify and analyze price clusters with Sourcetable AI. Calculate reversion probabilities, optimize entry points, and backtest strategies automatically using natural language.
Andrew Grosser
February 24, 2026 • 17 min read
October 2022: SPY falls to $352. It crashed below its 200-day MA, reached 2 standard deviations below the 20-day mean, and RSI hit 26. Three separate mean-reversion signals clustering simultaneously. You've noticed something interesting in your stock data. Prices don't move randomly—they cluster around certain levels, forming support and resistance zones that traders watch obsessively. When prices deviate significantly from these clusters, they tend to snap back like a rubber band. This is mean-reversion cluster trading, a quantitative strategy that profits from identifying price concentrations and betting on returns to these levels.
Traditional cluster analysis requires complex statistical software, custom scripts, and hours of manual calculation. You need to identify density peaks in price distributions, calculate standard deviations from cluster centers, determine optimal entry thresholds, and backtest thousands of scenarios. Most traders rely on Excel with dozens of formulas for clustering algorithms, z-score calculations, and probability distributions. One wrong cell reference and your entire analysis collapses sign up free.
Mean-reversion cluster trading identifies price levels where significant trading activity has concentrated, then profits when prices deviate from and return to these levels. The strategy assumes that prices gravitate toward equilibrium zones where buyers and sellers have historically agreed on value. When external shocks push prices away from these clusters, informed traders recognize the dislocation and position for the inevitable return.
The mathematical foundation involves kernel density estimation to identify price concentrations, statistical distance measurements to quantify deviations, and probability calculations to assess reversion likelihood. A typical setup: TSLA trades in a cluster around $245-$255 for three months with 60% of volume occurring in this range. When news pushes the stock to $275, that's 2.1 standard deviations from the cluster center. Historical data shows 78% reversion probability within 10 trading days. You short at $275 with a target of $255 and stop-loss at $285.
Excel makes this analysis painful. You need FREQUENCY functions for distribution analysis, complex array formulas for kernel density estimation, STDEV.P calculations for deviation metrics, and VLOOKUP chains for historical reversion rates. Want to test different cluster timeframes? Rebuild everything. Need to analyze 50 stocks simultaneously? Copy formulas across massive worksheets and pray nothing breaks. Backtesting requires VBA macros or external tools.
Sourcetable eliminates every friction point. The AI understands clustering concepts natively—upload your price data and ask 'Identify price clusters for the past 6 months using 95% confidence intervals.' It automatically performs density analysis, identifies statistically significant clusters, calculates center points and boundaries, and visualizes results with color-coded heatmaps. Ask 'What's the current deviation from the primary cluster?' and get instant z-scores with historical reversion probabilities.
The platform handles multi-asset analysis effortlessly. Upload data for your entire watchlist and ask 'Which stocks are currently 2+ standard deviations from their main cluster?' Sourcetable scans everything, ranks opportunities by deviation magnitude and reversion probability, and presents actionable results in seconds. Want to backtest your entry rules? Ask 'Show me returns from entering at 1.5 SD and exiting at cluster center over the past year.' The AI runs the simulation and shows win rate, average return, maximum drawdown, and Sharpe ratio.
Real-time monitoring becomes simple. Connect live price feeds and ask 'Alert me when any position deviates beyond 2 SD from its cluster.' Sourcetable watches your portfolio continuously and notifies you of opportunities. The AI even helps with position sizing: 'How much should I allocate to this trade given 72% reversion probability and $500 risk budget?' It calculates optimal position size using Kelly criterion or fixed fractional methods.
Mean-reversion cluster strategies offer systematic, data-driven trading with quantifiable edge. Instead of guessing support and resistance levels, you're identifying statistically significant price zones backed by volume and time data. Organizations from proprietary trading firms to hedge funds use cluster analysis to find high-probability setups with favorable risk-reward ratios.
Sourcetable's AI automatically detects price clusters using sophisticated density algorithms without requiring statistical expertise. Upload historical prices and ask 'Find all significant clusters from the past year.' The system performs kernel density estimation, identifies local maxima in the distribution, applies statistical significance tests, and returns cluster centers with confidence intervals. You get results like 'Primary cluster: $127.50-$132.50 (68% of volume), Secondary cluster: $118-$122 (22% of volume)' with visual distribution charts showing density peaks.
The AI adapts to different market conditions automatically. In trending markets, it identifies fewer, wider clusters. In range-bound periods, it detects tight, well-defined clusters with higher reversion probabilities. Ask 'How has cluster structure changed over time?' and see temporal evolution showing when markets transitioned from trending to mean-reverting behavior. This context helps you adjust strategy parameters for current conditions.
Track price deviations from cluster centers continuously without manual calculations. Sourcetable calculates z-scores in real-time, showing exactly how far current price has moved from equilibrium. Ask 'What's the current deviation status for my watchlist?' and get instant results: 'AAPL: +1.8 SD (approaching entry threshold), MSFT: -0.4 SD (neutral), GOOGL: +2.3 SD (active signal).' The AI highlights which positions meet your entry criteria and estimates reversion probability based on historical patterns.
Set custom alert thresholds that match your risk tolerance. Tell Sourcetable 'Notify me when any stock moves beyond 1.5 standard deviations from its primary cluster' and the system monitors everything automatically. When triggers hit, you receive alerts with full context: deviation magnitude, historical reversion rate at this level, average time to reversion, and suggested position sizing. This transforms cluster trading from reactive to proactive—you catch opportunities the moment they appear.
Every trade recommendation comes with quantified probability and confidence intervals. Ask 'What's the reversion probability for TSLA at current levels?' and Sourcetable analyzes historical instances where price deviated this far from the cluster. You get specific answers: '73% probability of returning to cluster center within 8 trading days (95% CI: 68-78%), average reversion move of $18.50, maximum adverse excursion of $6.20.' These metrics let you size positions appropriately and set realistic profit targets.
The AI distinguishes between high-confidence and low-confidence setups automatically. Clusters with consistent reversion patterns get higher probability scores. Clusters showing structural breakdown get flagged as unreliable. Ask 'Which opportunities have the strongest statistical support?' and Sourcetable ranks your watchlist by confidence score, filtering out marginal setups and highlighting only the highest-probability trades. This systematic approach removes emotional decision-making and keeps you focused on edge.
Analyze cluster structure across different timeframes to identify nested opportunities. Ask 'Show me daily and weekly clusters for SPY' and Sourcetable reveals how short-term clusters exist within longer-term equilibrium zones. You might discover the daily cluster at $445-$450 sits at the lower boundary of the weekly cluster at $445-$465. This multi-timeframe confluence suggests strong support and higher reversion probability for long positions.
The platform makes timeframe comparison effortless. Request 'Compare 30-day vs 90-day cluster structures for my portfolio' and see side-by-side analysis showing which assets have aligned clusters (stronger signals) versus conflicting clusters (avoid or trade carefully). This context prevents you from fighting longer-term trends—you only take mean-reversion trades when clusters align across timeframes, dramatically improving win rates.
Test your cluster strategy rules across years of data with simple questions. Ask 'Backtest entering at 2 SD with targets at cluster center for AAPL since 2020' and Sourcetable simulates every trade, calculating win rate, average return per trade, maximum drawdown, Sharpe ratio, and profit factor. You see exactly how your rules would have performed through different market regimes—trending periods, volatile crashes, and range-bound consolidations.
Optimization happens through conversation. Ask 'What entry threshold produces the best risk-adjusted returns?' and the AI tests multiple deviation levels (1.0 SD, 1.5 SD, 2.0 SD, 2.5 SD), comparing performance metrics for each. You discover that 1.8 SD provides the optimal balance—frequent enough opportunities with strong enough edge. The system even warns about overfitting: 'Results are robust across different test periods' or 'Performance degrades significantly in out-of-sample data—consider different parameters.'
Implementing cluster strategies in Sourcetable follows a systematic workflow from data import through position management. The AI handles complex statistical calculations while you focus on strategy decisions and risk management. Here's the complete process for identifying and trading mean-reversion opportunities.
Start by uploading historical price data for your target assets. Sourcetable accepts CSV files, Excel spreadsheets, or direct connections to data providers like Yahoo Finance, Alpha Vantage, or your broker's API. Your data should include date, open, high, low, close, and volume for each trading period. For cluster analysis, you typically need at least 3-6 months of daily data, though the AI adapts to whatever timeframe you provide.
Once uploaded, ask 'Show me the price distribution for NVDA over the past 6 months.' Sourcetable immediately creates a histogram showing frequency of prices at different levels. You'll see clear peaks where prices spent significant time—these are your cluster candidates. The AI overlays volume data to show which clusters had the most trading activity, indicating stronger support/resistance levels. This visual analysis takes seconds versus the hours required to build equivalent Excel charts.
Ask Sourcetable to perform formal cluster identification: 'Identify significant price clusters using 95% confidence level.' The AI applies kernel density estimation to smooth the price distribution, identifies local maxima that represent cluster centers, calculates statistical significance using density thresholds, and returns results with precise boundaries. You get output like: 'Primary cluster: $485-$495 (center: $490, 58% of observations, p<0.01), Secondary cluster: $470-$478 (center: $474, 28% of observations, p<0.05).'
The system provides context for each cluster automatically. Ask 'Why is the $490 cluster significant?' and receive explanations: 'This cluster formed over 47 trading days with average daily volume 15% above baseline. Price tested this level 8 times with 6 successful reversions. Volume profile shows balanced buying/selling, indicating equilibrium zone.' This narrative helps you understand not just where clusters exist but why they're likely to persist.
With clusters identified, monitor current price position relative to cluster centers. Ask 'What's the current z-score for NVDA relative to its primary cluster?' Sourcetable calculates the standardized distance: 'Current price $510 is +2.1 standard deviations from primary cluster center at $490 (SD = $9.52).' The AI shows this graphically with color-coded zones: green for neutral (within 1 SD), yellow for moderate deviation (1-2 SD), and red for extreme deviation (2+ SD) where reversion trades become attractive.
For portfolio-wide monitoring, ask 'Show me all stocks with deviations exceeding 1.5 SD.' Sourcetable scans your entire watchlist, calculates z-scores for each asset, and returns a ranked table showing the most extreme deviations first. Each entry includes current price, cluster center, deviation magnitude, direction (above/below cluster), and time since deviation began. This systematic screening ensures you never miss high-probability opportunities across your universe.
Before entering trades, quantify reversion likelihood using historical patterns. Ask 'What's the historical reversion rate when NVDA moves 2+ SD from its cluster?' Sourcetable analyzes all past instances matching current conditions, calculating: 'In 23 historical occurrences of 2+ SD deviations, price returned to within 0.5 SD of cluster center in 19 cases (83% success rate). Average time to reversion: 6.2 trading days. Average reversion move: $17.30. Maximum adverse excursion before reversion: $8.50.'
The AI adjusts probabilities based on context. If the broader market is trending strongly, reversion rates may be lower. If volatility is elevated, reversions may be faster but less reliable. Ask 'How do current market conditions affect reversion probability?' and get adjusted estimates: 'VIX at 28 (elevated) historically reduces reversion probability to 71% but increases average reversion magnitude to $21.50. Consider wider stops and larger profit targets.'
Sourcetable helps you determine appropriate position size based on probability and risk tolerance. Tell the AI your constraints: 'I have $50,000 capital and want to risk no more than 2% per trade. What position size for NVDA short at $510 with stop at $520?' It calculates: 'Risk per share: $10. Maximum risk: $1,000 (2% of $50,000). Position size: 100 shares. Notional exposure: $51,000 (102% of capital—consider reducing to 50 shares for 1% risk if using margin).'
For more sophisticated sizing, ask 'Calculate optimal position size using Kelly criterion given 83% win probability and 1.7:1 reward-risk ratio.' The AI applies the Kelly formula and suggests: 'Optimal Kelly fraction: 0.145 (14.5% of capital). Recommended half-Kelly for safety: 7.25% = $3,625 position. At $510 per share: 7 shares.' This mathematical approach maximizes long-term growth while controlling risk of ruin.
Once in trades, track progress toward reversion targets. Ask 'Show me current P&L and distance to target for my cluster positions.' Sourcetable displays a dashboard with each position's entry price, current price, unrealized P&L, distance to cluster center (your target), and time in trade. You see at a glance which positions are moving as expected and which may need adjustment.
Set dynamic alerts for exit conditions: 'Notify me when NVDA reaches within $2 of cluster center or time in trade exceeds 10 days.' The AI monitors continuously and alerts you when conditions trigger. You can even ask for exit recommendations: 'Should I close my NVDA position now?' The system evaluates current deviation (now at 0.8 SD), time in trade (7 days), and remaining edge, responding: 'Position has captured 68% of expected reversion. Remaining edge is small. Consider closing 50-75% to lock profits while leaving runner for full target.'
After accumulating trade history, ask Sourcetable to analyze your results: 'Show me performance metrics for all cluster trades this quarter.' Get comprehensive statistics: win rate, average win/loss, profit factor, maximum drawdown, Sharpe ratio, and comparison to buy-and-hold. The AI identifies patterns: 'Win rate is 78% overall but only 62% in trending markets. Consider filtering trades to range-bound conditions only.'
Request specific diagnostic analysis: 'Why did my TSLA cluster trade fail?' Sourcetable examines the trade context: 'Entry occurred during earnings week when implied volatility was 85th percentile. Historical data shows reversion probability drops to 54% during high-IV periods. Additionally, the cluster had only formed over 3 weeks—less established than your typical 6-week minimum. Suggest adding IV filter and cluster age requirements to entry rules.' This feedback loop continuously improves your strategy.
Mean-reversion cluster strategies apply across multiple markets and trading styles. From day trading individual stocks to managing multi-asset portfolios, cluster analysis provides systematic entry and exit signals backed by statistical evidence. Here are specific scenarios where Sourcetable's cluster analysis delivers measurable trading edge.
Active traders use intraday and daily clusters to identify high-probability reversal points. You're watching AAPL which has formed a tight cluster between $178-$182 over the past month. News pushes the stock to $172 in morning trading—that's 2.4 standard deviations below the cluster center at $180. You ask Sourcetable 'What's the reversion probability for AAPL at $172?' and learn that in 15 historical instances of similar deviations, price returned to the cluster within 2 days 87% of the time with average gain of $6.50.
You enter long at $172 with 200 shares, risking $800 (stop at $168) to make $1,300 (target at $178.50, the lower cluster boundary). Sourcetable monitors the position and alerts you when price reaches $178.20 the next afternoon. You close for $1,240 profit—a 1.55:1 reward-risk ratio captured in 26 hours. The AI logs this trade and updates your strategy statistics, showing your cluster approach now has 76% win rate over 31 trades with 1.8 profit factor.
Forex markets exhibit strong mean-reversion characteristics, making cluster analysis particularly effective. EUR/USD has traded in a cluster around 1.0850-1.0950 for six weeks. Central bank commentary drives a spike to 1.1050, putting price 2.1 SD above the cluster center. You ask Sourcetable 'Analyze EUR/USD cluster deviation and show reversion scenarios.' The AI reveals that at this deviation level, reversion to cluster center occurs within 5 days 81% of the time, with average retracement of 125 pips.
You short EUR/USD at 1.1045 with position size calculated by Sourcetable based on your 1.5% risk tolerance and 80-pip stop. The AI suggests 'With account size $100,000 and 1.5% risk ($1,500), position size is 1.875 mini lots (18,750 units) given 80-pip stop.' You execute the trade and set alerts for target at 1.0900 (cluster center) or stop at 1.1125. Three days later, price reverts to 1.0915 and you close for 130-pip gain, generating $2,437 profit. Sourcetable automatically updates your forex cluster statistics and identifies the next opportunity: GBP/JPY now showing 1.9 SD deviation.
Combine cluster analysis with options strategies to enhance premium collection. NVDA has a well-defined cluster at $480-$500, and current price is $520—significantly extended. Instead of shorting stock, you sell out-of-the-money call spreads betting on reversion. Ask Sourcetable 'What strike prices optimize premium collection for NVDA reversion to $490 cluster?' The AI analyzes option chains and suggests: 'Sell $530/$540 call spread expiring in 21 days. Collect $3.20 premium. Probability of profit 76% based on cluster reversion patterns. Max risk $6.80 if price continues higher.'
You execute 10 spreads, collecting $3,200 premium with $6,800 max risk. Sourcetable monitors both the underlying cluster position and your option Greeks. Five days later, NVDA reverts to $495 and your spreads are worth $0.40. You close early for $2,800 profit (87% of max gain), avoiding the risk of holding to expiration. The AI notes: 'Early exit captured 87% of premium in 24% of time to expiration—efficient capital use. Annualized return on risk: 238%.' This quantified feedback helps you refine your options-cluster hybrid approach.
Use cluster analysis to identify when your portfolio holdings have extended too far from equilibrium, signaling hedge opportunities. You hold long positions in tech stocks that have rallied strongly. Ask Sourcetable 'Show me cluster deviations for my portfolio holdings.' The AI reveals: 'MSFT: +2.3 SD, GOOGL: +1.9 SD, AMZN: +2.6 SD. Average portfolio deviation: +2.1 SD. Historical analysis shows 68% probability of 5%+ correction within 15 days when portfolio reaches this deviation level.'
Rather than selling winners and triggering taxes, you hedge with index put spreads or short-term tactical shorts in the most extended names. Sourcetable calculates hedge ratios: 'To hedge 50% of portfolio beta, short 120 shares of QQQ or buy 3 contracts of QQQ $380/$370 put spreads.' You implement the hedge and set alerts: 'Notify when average portfolio deviation returns below 1.0 SD.' Ten days later, tech pulls back 6%, your long positions decline $28,000, but your hedge gains $14,200. Net drawdown of $13,800 (49% hedged) versus $28,000 unhedged—cluster analysis helped you protect capital during the reversion.
If your question is not covered here, you can contact our team.
Contact Us