Price Action Classifier

Portfolio Analytics Intermediate United States Equity ETFs Futures Options Forex Commodities
Learn this and United States-market strategies in depth — one-time purchase, lifetime access.
Unlock full hub →

Quick Reference

Purpose Systematically classify price action into defined market states (trending, ranging, breakout, reversal) to optimize strategy selection, improve trade timing, and enhance risk management
Core Function Analyzes candlestick patterns, swing structure, momentum characteristics, and volatility regimes to assign probabilistic classifications to current price behavior
Primary Users Discretionary traders seeking systematic framework, quantitative traders building adaptive strategies, portfolio managers monitoring market conditions
Key Benefit Removes subjectivity from price action analysis by providing consistent, rule-based classification that adapts strategy selection to current market conditions
Data Sources OHLCV price data, real-time quotes, historical patterns database
Update Frequency Real-time classification with multiple timeframe analysis (intraday to weekly)
Us Context Calibrated for US market characteristics including gap behavior, session timing, and options-expiration effects
Typical Signals Trend classification (strong/weak/neutral), range identification, breakout probability, reversal warnings, volatility regime
Risk Consideration Classification is probabilistic, not deterministic - always use with proper risk management

Payoff Profile

Price Action Classifier displays market state classifications rather than traditional payoff curves

United States Market Details

Market Characteristics 9:30 AM to 4:00 PM ET, with pre-market 4:00-9:30 AM (most active 7:00-9:30 AM) and the 9:30 AM opening auction • Significant overnight gaps due to earnings, overnight index futures, and global markets; gap analysis is crucial • Typically lower volatility 11:30 AM-1:30 PM (midday lull) • Increased activity 3:00-4:00 PM (power hour), especially on expiration days • Monday gaps, Friday position squaring and monthly OPEX, daily 0DTE expiration effects
Volatility Considerations FOMC decision days show extreme price action patterns • Rate-sensitive stocks show specific patterns around CPI, jobs reports, and Fed announcements • Stock-specific volatility clusters during quarterly earnings • Overnight index futures and global market action affect opening price action • Elevated volatility and gap frequency during elections
Index Specific Patterns Highly efficient, mean-reverting intraday, trend-following on higher timeframes • Higher volatility, stronger trends, significant option-driven moves • Less efficient, stronger trends, more breakout opportunities • Rotation patterns, sector-specific catalysts drive price action (GICS/SPDR sector ETFs)
Options Impact Pin risk, gamma exposure affects price action near round numbers and key strikes • Quarterly futures rollover week shows specific price patterns • Price often gravitates toward max pain levels near expiry • Heavy OI at strikes creates support/resistance
Halt And Auction LULD (Limit Up-Limit Down) bands (5-20% by tier) affect price action classification • Market-wide circuit breakers (7%, 13%, 20% S&P 500 declines) create specific recovery patterns • Opening (9:30 AM) and closing (4:00 PM) auction prices are significant • Stocks under Short-Sale Restriction (SSR / Reg SHO) show compressed price action

Frequently Asked Questions

How often should I re-classify the market state?

Classification frequency depends on your trading timeframe. For swing traders using daily charts, re-classify at end of each day and check intraday only if significant moves occur. For intraday traders, re-classify at the close of each bar on your primary timeframe (e.g., every 15 minutes or hour). The key is consistency - always classify before making trading decisions, and update when your primary timeframe bar closes.

What should I do when the market state is 'Choppy' or 'Unclear'?

When the market is classified as choppy or unclear, the best action is usually to reduce trading activity or stay flat. Choppy markets eat traders alive through whipsaws - trend strategies fail and reversals are unreliable. Wait for clarity to emerge. You can still monitor and analyze, but don't force trades. Preserving capital during unfavorable conditions is as important as making money during favorable ones.

Do I need to use all the indicators mentioned (ADX, RSI, MACD, etc.)?

No, you don't need all indicators. Start with price structure (HH/HL/LH/LL) and one or two confirming indicators. Adding more indicators often creates confusion rather than clarity. A simple approach might use only swing structure and one MA for trend, plus RSI for momentum. As you gain experience, you can add complexity if it improves your results. Many professional traders use less than beginners expect.

Can the same stock be in an uptrend and downtrend at the same time?

Yes, on different timeframes. A stock might be in a daily uptrend (HH/HL on daily) while simultaneously in a 1-hour downtrend (LH/LL on hourly) as part of a pullback. This is normal and why multi-timeframe analysis matters. The key is understanding the hierarchy - higher timeframes take precedence. The hourly downtrend is a pullback within the daily uptrend, likely to reverse when the pullback completes.

How reliable are candlestick patterns for classification?

Individual candlestick patterns have moderate reliability - typically 55-65% success rates depending on the pattern and context. They're not standalone signals but useful confirmation. The key is context: a hammer at a significant support level after a long downtrend is more reliable than a hammer in the middle of nowhere. Always combine patterns with structure analysis (where are we in the trend?) and momentum confirmation for better reliability.

How do I handle classification during transitions between states?

Transitions are the most difficult periods for classification. When structure is breaking (e.g., first lower low in an uptrend), classify as 'Transitional' or 'Weak [Prior State]' rather than forcing a new classification. Wait for confirmation (e.g., lower high after lower low) before fully changing classification. During transitions, reduce position size, tighten stops on existing positions, and be patient. Many losses occur from trading aggressively during transitions.

How should I adjust classification for US market specifics like gap openings?

US markets often gap significantly due to overnight index-futures moves, earnings releases, and global developments. For classification: (1) Don't let opening gaps immediately change classification - wait for intraday price action, (2) Use gap-adjusted indicators or be aware of gap effects on MA calculations, (3) Consider separate classification for 'gap opening' scenarios, (4) Gaps often fill partially or fully - don't chase gap moves. Also account for options-expiration effects, especially on Fridays and around daily 0DTE SPX expirations, where gamma exposure can distort 'normal' price action patterns.

What's the best way to combine multiple indicators without getting conflicting signals?

Use indicators for different purposes rather than the same purpose. For example: MAs for trend direction, ADX for trend strength, RSI for momentum, ATR for volatility. Assign primary and secondary roles: Primary (must agree) and Secondary (nice-to-have confirmation). Create a scoring system (+1 for bullish, -1 for bearish per indicator) and only trade when net score exceeds a threshold. This structured approach reduces conflicting signals and provides clear decision rules.

How do I know if a breakout is genuine or likely to fail?

Assess breakout quality using: (1) Consolidation duration - longer consolidation = more reliable breakout, (2) Volume confirmation - breakout volume should be 1.5-2x average, (3) Momentum confirmation - RSI/MACD should confirm the direction, (4) Trend alignment - breakouts with higher timeframe trend are more reliable, (5) Multiple timeframe confirmation - lower timeframe should show new trend structure. Create a scoring system and only trade high-scoring breakouts. Accept that some will still fail - use stops to manage the risk.

How should volatility regime affect my trading?

Adapt significantly to volatility: Low volatility: Expect ranges, reduce profit targets, consider breakout positioning (volatility expansion coming), options are cheap (buy premium). High volatility: Widen stops (avoid noise exits), consider mean-reversion at extremes, reduce size due to larger moves, options are expensive (sell premium). Always size positions based on current ATR for consistent risk. A position sized for low volatility becomes dangerously large if volatility spikes.

How do I prevent overfitting when building ML classification models?

Key overfitting prevention: (1) Feature selection - use economically meaningful features, avoid data-mined features, (2) Regularization - L1/L2 regularization for linear models, depth limits for trees, (3) Walk-forward validation - always test on out-of-sample data using rolling windows, (4) Cross-validation - K-fold with time-respecting splits, (5) Ensemble methods - combine multiple models to reduce individual model overfit, (6) Simplicity preference - start with simpler models, add complexity only if validated. Monitor out-of-sample performance vs in-sample - large gaps indicate overfitting.

How can I incorporate order flow into classification without Level 2 data?

Infer order flow from available data: (1) Volume-at-price analysis using daily OHLC to estimate buying vs selling pressure, (2) Candlestick structure - long lower wicks show buying absorption, (3) Volume on up vs down bars - accumulation shows higher volume on up bars, (4) Price behavior at levels - multiple rejections indicate strong limit orders, (5) Time-and-sales patterns if available from broker. Combine these proxies for order flow insight. While not as precise as Level 2, these inferences add meaningful context to classification.

What metrics should I use to monitor classification system performance in production?

Monitor: (1) Classification accuracy - backtest recent classifications against outcomes, calculate hit rate, (2) Classification distribution - % time in each state, compare to historical norms, (3) Transition frequency - too many transitions may indicate noise, too few may indicate lag, (4) Confidence calibration - are 80% confidence classifications correct 80% of the time?, (5) Feature drift - are input features behaving normally?, (6) Trading performance by classification - are 'Strong Uptrend' classifications actually producing long profits? Set alerts for significant deviations from expected performance.

How should I handle regime changes in adaptive classification systems?

Regime handling approach: (1) Detect regimes using volatility, correlation, or trend metrics, (2) Maintain separate classification parameters for each regime, (3) Implement smooth transitions - don't hard-switch, blend between regime classifiers, (4) Monitor regime detection accuracy - is the system correctly identifying regimes?, (5) Have fallback - if regime detection fails, use robust 'all-regime' classification. The key is recognizing that optimal classification parameters differ by regime and building systems that adapt appropriately without overreacting to noise.

How do I integrate probabilistic classification with trading decisions?

Use probabilities to scale actions: (1) Position sizing - size proportional to classification confidence (90% confidence = full size, 60% = half size), (2) Entry aggressiveness - high confidence = market order, lower confidence = limit order at better price, (3) Stop placement - lower confidence = tighter stops to limit downside, (4) Profit targets - adjust targets based on confidence and expected move, (5) Trade frequency - require higher confidence threshold to take trades, filtering out low-conviction signals. Model uncertainty explicitly rather than forcing binary classifications.

Related Strategies

Master United States trading strategies on AlgoKing

Full guided lessons, quizzes, and a complete strategy library for the United States market. One-time purchase. No subscription, ever.

Get United States access →