Back to Nofx

Market Regime Classification Framework

docs/market-regime-classification-en.md

latest11.8 KB
Original Source

Market Regime Classification Framework

A comprehensive market state identification system for quantitative trading strategy matching


1. Classification Dimensions Overview

Market state identification requires analysis across multiple dimensions:

DimensionSub-dimensionsDescription
TrendDirection, StrengthDetermine market movement direction and momentum
VolatilityAmplitude, FrequencyMeasure price fluctuation characteristics
StructurePattern, PhaseIdentify market structure and cycle position

2. Primary Classification (5 Categories)

2.1 Classification Overview

CodeNameKey CharacteristicsSuitable Strategies
TREND_UPUptrendHigher highs & higher lowsTrend following, Breakout
TREND_DOWNDowntrendLower highs & lower lowsTrend following, Short selling
RANGERange-boundPrice oscillates within boundsGrid trading, Mean reversion
TRANSITIONTransitionUncertain directional periodWait & watch, Small positions
BREAKOUTBreakoutPrice breaks key levelsBreakout trading

2.2 Identification Indicators

  • ADX (Average Directional Index): Measures trend strength
    • ADX > 25: Clear trend exists
    • ADX < 20: Range-bound market
  • EMA Alignment: Determines trend direction
    • EMA20 > EMA50 > EMA200: Bullish alignment
    • EMA20 < EMA50 < EMA200: Bearish alignment

3. Secondary Classification (18 Sub-categories)

3.1 Uptrend Sub-categories (5 Types)

CodeNameTechnical FeaturesQuantitative Indicators
TU_STRONG_LOW_VOLStrong Uptrend · Low VolSteady rise, shallow pullbacksADX>40, ATR%<2%, Pullback<38.2%
TU_STRONG_HIGH_VOLStrong Uptrend · High VolRapid surge, high volatilityADX>40, ATR%>4%, MACD histogram expanding
TU_WEAK_CHOPPYWeak Uptrend · ChoppyTwo steps forward, one backADX 20-30, RSI oscillating 50-70
TU_PARABOLICParabolic AccelerationExponential price increasePrice far from MA, RSI>80, Volume surge
TU_EXHAUSTIONUptrend ExhaustionNew highs but weakening momentumPrice new high + MACD/RSI divergence

Strategy Matching:

  • Strong Low Vol: Heavy trend following, pyramid adding
  • Strong High Vol: Medium position, trailing stops
  • Weak Choppy: Light swing trading
  • Parabolic: Cautious, prepare to exit
  • Exhaustion: Reduce positions, prepare for reversal

3.2 Downtrend Sub-categories (5 Types)

CodeNameTechnical FeaturesQuantitative Indicators
TD_STRONG_LOW_VOLStrong Downtrend · Low VolSteady decline, weak bouncesADX>40, ATR%<2%, Bounce<38.2%
TD_STRONG_HIGH_VOLStrong Downtrend · High VolPanic selling, wild swingsADX>40, ATR%>5%, VIX spike
TD_WEAK_CHOPPYWeak Downtrend · ChoppyGrinding lower with bouncesADX 20-30, RSI oscillating 30-50
TD_CAPITULATIONCapitulationHigh volume crash, extreme fearRSI<20, Volume>3x average
TD_EXHAUSTIONDowntrend ExhaustionNew lows but selling pressure fadingPrice new low + MACD/RSI divergence

Strategy Matching:

  • Strong Low Vol: Short trend following
  • Strong High Vol: Stay flat or light hedge
  • Weak Choppy: Wait for stabilization
  • Capitulation: Light bottom fishing possible
  • Exhaustion: Gradually build long positions

3.3 Range Sub-categories (4 Types)

CodeNameTechnical FeaturesQuantitative Indicators
RG_TIGHT_LOW_VOLTight Range · Low VolExtreme contraction, coilingBB Width<2%, ATR at new lows
RG_TIGHT_HIGH_VOLTight Range · High VolViolent swings within rangeBB Width<3%, ATR%>3%
RG_WIDE_LOW_VOLWide Range · Low VolLarge range, slow movementBB Width>5%, ATR%<2%
RG_WIDE_HIGH_VOLWide Range · High VolLarge range, fast movementBB Width>5%, ATR%>3%

Strategy Matching:

  • Tight Low Vol: Dense grid, wait for breakout
  • Tight High Vol: Fast grid, small frequent profits
  • Wide Low Vol: Sparse grid, patient holding
  • Wide High Vol: Swing trading, high profit targets

3.4 Transition (2 Types)

CodeNameTechnical FeaturesQuantitative Indicators
TR_BOTTOM_FORMINGBottom FormingDecline slowing, testing supportPrice stabilizing + Volume drying up + RSI divergence
TR_TOP_FORMINGTop FormingRally slowing, testing resistancePrice stalling + Volume drying up + RSI divergence

3.5 Breakout (2 Types)

CodeNameTechnical FeaturesQuantitative Indicators
BK_UPWARDUpward BreakoutBreaking resistance with volumePrice>Previous high, Volume>2x, BB breakout
BK_DOWNWARDDownward BreakoutBreaking support with volumePrice<Previous low, Volume>2x, BB breakdown

4. Tertiary Classification (36 Ultra-fine Categories)

4.1 Trend Phase Classification

Uptrend lifecycle consists of 5 phases:

Phase CodeNameDescriptionQuantitative Criteria
TU_S1_INITIATIONUptrend InitiationFirst break above MA or previous highMACD bullish cross, Price>EMA20
TU_S2_ACCELERATIONUptrend AccelerationMomentum increasing, slope steepeningMACD histogram expanding, ADX rising
TU_S3_MAIN_WAVEMain WaveSustained rise, shallow pullbacksRSI 60-80, Pullbacks hold EMA20
TU_S4_EXHAUSTIONUptrend ExhaustionSlowing momentum, divergences appearingRSI divergence, MACD divergence
TU_S5_REVERSALTrend ReversalBreakdown, trend endingBreak below EMA50, MACD bearish cross

Downtrend phases follow same pattern: TD_S1 through TD_S5

4.2 Range Position Classification

Position CodeNameDescriptionStrategy Suggestion
RG_UPPERUpper RangePrice near resistanceBias toward short
RG_MIDDLEMid RangePrice near middle bandNeutral grid trading
RG_LOWERLower RangePrice near supportBias toward long
RG_SQUEEZESqueeze PatternHighs and lows convergingWait for direction
RG_EXPANDExpanding PatternHighs and lows divergingBoundary reversal

4.3 Volatility Grades

CodeNameATR%BB WidthStrategy Suggestion
VOL_EXTREME_LOWExtreme Low Vol<1%<1.5%Option selling
VOL_LOWLow Volatility1-2%1.5-2.5%Grid / Mean reversion
VOL_NORMALNormal Volatility2-3%2.5-4%Trend following
VOL_HIGHHigh Volatility3-5%4-6%Momentum / Breakout
VOL_EXTREME_HIGHExtreme High Vol>5%>6%Reduce exposure / Hedge

5. Complete State Encoding Rules

5.1 Encoding Format

{Primary}_{Volatility}_{Phase}_{Position}

5.2 Encoding Examples

Full CodeInterpretation
TU_LV_S3_MUptrend_LowVol_MainWave_Middle
TD_HV_S2_LDowntrend_HighVol_Acceleration_Lower
RG_NV_SQ_URange_NormalVol_Squeeze_Upper
BK_HV_UP_MBreakout_HighVol_Upward_Middle

6. Core Identification Indicators

6.1 Trend Indicators

IndicatorCalculationCriteria
ADX14-period Average Directional Index>40 Strong, 25-40 Medium, <25 Weak/Range
Trend ScoreComposite EMA/MACD/Price structure-100 to +100, Positive=Bullish, Negative=Bearish
EMA AlignmentRelative position of EMA20/50/200Bullish/Bearish/Mixed alignment

6.2 Volatility Indicators

IndicatorCalculationPurpose
ATR PercentATR(14) / Current Price × 100%Measure relative volatility
BB Width(Upper - Lower) / Middle × 100%Measure price range
Volatility RankCurrent vol percentile in historyDetermine vol level

6.3 Momentum Indicators

IndicatorCalculationCriteria
RSI14-period Relative Strength Index>70 Overbought, <30 Oversold, 50 Neutral
MACD HistogramMACD - SignalPositive=Bullish momentum, Negative=Bearish
Momentum ScoreComposite RSI/MACD/VolumeMeasure current momentum

6.4 Structure Indicators

IndicatorDescriptionPurpose
Swing StructureHH/HL/LH/LL sequenceDetermine trend structure
Support/ResistanceKey price levelsDefine trading range
Volume ProfileVolume-price relationshipValidate price action

7. Strategy Matching Matrix

7.1 Regime-Strategy Mapping

Regime TypeRecommended StrategyPosition SizeStop Loss
Strong Uptrend · Low VolTrend following + Pyramid60-80%ATR×2
Strong Uptrend · High VolMomentum + Quick profit40-60%ATR×1.5
Uptrend ExhaustionReduce + Reversal short20-30%Previous high
Panic DeclineWait or light bottom fish10-20%Wide stop
Low Vol RangeGrid trading50-70%Range boundary
High Vol RangeSwing trading30-50%ATR×2
Squeeze PatternWait for breakout10-20%-
Upward BreakoutChase + Add on pullback50-70%Breakout level
Bottom FormationScale in gradually20-40%New low

7.2 Grid Strategy Parameter Matching

Range TypeGrid LevelsGrid SpacingOther Parameters
Tight Low Vol30-50 levelsSmall spacingEnable Maker Only
Tight High Vol15-25 levelsSmall spacingFast execution mode
Wide Low Vol10-20 levelsLarge spacingPatient execution
Wide High Vol15-25 levelsLarge spacingHigh profit targets
Squeeze PatternPause grid-Wait for breakout signal
Upper RangeShort biasMediumIncrease sell weight
Lower RangeLong biasMediumIncrease buy weight

8. Real-time Monitoring Guidelines

8.1 State Transition Triggers

Current StateTrigger ConditionTransitions To
RangePrice breakout + Volume + ADX risingBreakout
UptrendRSI divergence + Volume declineExhaustion
DowntrendRSI divergence + Volume declineExhaustion
BreakoutFailed breakout, price returnsRange
ExhaustionConfirmed reversal breakoutOpposite trend

8.2 Risk Control Rules

Regime StateMax PositionRisk Per TradeSpecial Rules
Strong Trend80%2%Adding allowed
Weak Trend50%1.5%No adding
Range60%1%Diversified holding
Transition30%1%Reduce activity
High Volatility40%0.5%Wide stops

9. Appendix

9.1 Abbreviation Reference

AbbrevFull FormDescription
TUTrend UpUpward trend
TDTrend DownDownward trend
RGRangeRange-bound market
TRTransitionTrend transition
BKBreakoutBreakout pattern
LVLow VolatilityLow volatility regime
HVHigh VolatilityHigh volatility regime
NVNormal VolatilityNormal volatility regime
XLVExtreme Low VolExtremely low volatility
XHVExtreme High VolExtremely high volatility

9.2 Document Information

  • Version: v1.0
  • Created: January 2026
  • Applicable: Cryptocurrency, Forex, Stocks, and other financial markets

This document is designed for market state identification and strategy matching in quantitative trading systems