| name | regime-adaptive-verification |
| description | Regime-adaptive quantitative verification and risk control framework โ combines signal validation with regime multipliers, portfolio optimization, cross-asset risk grading, concentration monitoring, and veto logic. Risk signals are interpreted differently per market regime. |
| when_to_use | Trigger when the user mentions: ้ๅ้ช่ฏ, ้ฃๆง, ๅๆต, ไฟกๅท้ช่ฏ, ็ปๅไผๅ, ้ฃ้ฉ่ฏไผฐ, ๆญขๆ, quantitative, backtesting, risk control, portfolio optimization, signal verification, veto, risk assessment |
Regime-Adaptive Verification โ Quantitative Validation & Risk Control
Two-part framework: QuantAnalyst (signal verification + portfolio optimization) + RiskSupervisor (cross-asset risk measurement + veto authority). Both share the core principle: signals and risks are interpreted through the lens of the current market regime.
Part A: Quantitative Signal Verification
Market Regime Multiplier Table
All quantitative signal weights are calibrated by regime. A signal's raw strength is multiplied by the regime coefficient before any judgment.
| Signal Type | Bull | Structural Bull | Range-Bound | Bear |
|---|
| Trend Following (MACD golden cross, MA breakout) | ร1.5 | ร1.3 | ร1.0 | ร0.5 |
| Mean Reversion (RSI oversold bounce, Bollinger lower band) | ร0.5 | ร0.7 | ร1.0 | ร1.5 |
| Momentum (price momentum, volume surge) | ร1.3 | ร1.2 | ร1.0 | ร0.7 |
| Volatility (ATR expansion, historical vol) | ร0.7 | ร0.8 | ร1.0 | ร1.3 |
| Overbought Warning (RSI>70, upper BB) | ร0.3 | ร0.5 | ร0.8 | ร1.2 |
| Oversold Signal (RSI<30, lower BB) | ร0.8 | ร0.9 | ร1.0 | ร0.6 |
Usage: Calibrated signal strength = raw signal ร regime multiplier. Use calibrated values for consistency checks.
Signal Verification
When AssetAnalyst produces a conclusion, verify it quantitatively:
| Dimension | AssetAnalyst Judgment | Quantitative Signal | Consistent? |
|---|
| Trend direction | Up/Down/Sideways | MACD, MA, ADX | โ
/โ |
| Valuation level | High/Fair/Low | PE percentile, PB percentile | โ
/โ |
| Momentum/Volatility | Strong/Weak | RSI, ATR, volume trend | โ
/โ |
Tools:
stock-analysis โ Hot Scanner, 8D analysis, momentum/RSI scanning
stock_profile.py --mode technical --days 20 โ batch pull 20+ indicators
westock-data โ historical K-line for custom calculations
Backtesting
When a strategy hypothesis is presented:
- Pull historical data
- Run simple backtest for the proposed signal
- Output: win rate, max drawdown, Sharpe ratio
Portfolio Optimization
- Based on current holdings run risk parity or mean-variance optimization
- Output: current portfolio risk-return profile + adjustment direction (not specific buy/sell)
- Position sizing: use user total assets % from ChiefCoordinator
- In structural bull + high cash: allow single position 15-25%
Part B: Risk Assessment
Cross-Asset Risk Metrics
| Asset Type | Key Risk Indicators |
|---|
| Stock | Volatility, max drawdown, Beta, concentration |
| ETF/Fund | Tracking error, liquidity risk, holding overlap |
| Futures | Leverage ratio, margin pressure, overnight gap risk |
| Commodities | Price volatility, inventory cycle risk |
| Bonds | Interest rate risk (duration), credit risk |
| Portfolio | VaR, Sharpe ratio, cross-asset correlation |
Data sources:
westock-data quote/market โ market volatility data
stock-analysis โ risk detection signals
market/limit_up.py โ limit-up board quality (lock size, openings)
Regime-Adaptive Risk Grading
Base risk is multiplied by the market regime coefficient:
| Market Environment | Coefficient | Risk Posture | Max Position | Stop-Loss | Veto Threshold |
|---|
| Bull | ร0.6 | Lenient | 80% | -10% | Extreme only |
| Structural Bull | ร0.8 | Positive-cautious | 60% | -8% | Major risk only |
| Range-Bound | ร1.0 | Baseline | 40% | -5% | Normal |
| Bear | ร1.3 | Strict | 20% | -3% | Low (tend to veto) |
| Policy-driven | ร1.0 | Quick in/out | 30% | -5% | Moderate |
Risk Levels (Raw)
| Level | Meaning | Action |
|---|
| ๐ข Low | Within normal fluctuation range | Routine monitoring |
| ๐ก Medium | Requires attention | Note risk items |
| ๐ด High | May trigger significant loss | Warn + alternative suggestion |
| โซ Critical | Portfolio faces irreversible loss | Veto operation + emergency stop-loss |
Regime-Adjusted Risk Level
Adjusted level = raw level ร regime coefficient.
| Scenario | Raw Level | Regime | Coefficient | Adjusted | Response |
|---|
| Bull market overbought | ๐ด High | Bull | ร0.6 | ๐ก Medium | Warning, not veto |
| Bear market medium risk | ๐ก Medium | Bear | ร1.3 | ๐ด High | Warning, tend to veto |
| Range-bound high risk | ๐ด High | Range | ร1.0 | ๐ด High | Veto unless strong catalyst |
Concentration Monitoring
Check and warn when:
- Single position exceeds threshold (regime-adjusted)
- Industry concentration too high
- Cross-asset correlation too high (stocks and commodities falling together)
Veto Logic
Same risk level triggers different responses per regime:
| Market Regime | ๐ก Medium Response | ๐ด High Response | โซ Critical Response |
|---|
| Bull | Routine monitoring | โ ๏ธ Warn, suggest position reduction | ๐ซ Veto operation |
| Structural Bull | Routine monitoring | โ ๏ธ Warn, suggest smaller position + hard stop-loss | ๐ซ Veto operation |
| Range-Bound | Note risk items | ๐ซ Tend to veto unless strong catalyst | ๐ซ Strict veto |
| Bear | โ ๏ธ Warn | ๐ซ Strict veto | ๐ซ Strict veto + emergency reduction |
| Policy-driven | Shorten holding period | ๐ซ Tend to veto | ๐ซ Strict veto |
Core principle: In bull markets, "high volatility โ high risk" โ pullbacks within trends are entry opportunities, not danger signals. In bear markets, "low volatility โ low risk" โ slow grinding declines are equally deadly.
Report Format
Every report begins with the market environment declaration.
# [Risk Assessment Report]
## Market Environment
- [Bull / Structural Bull / Range-Bound / Bear / Policy-driven]
- Basis: [advance/decline ratio, average return, median return, limit-up/down ratio, volume percentile]
## Portfolio-Level Risk
- Risk Level: [๐ข/๐ก/๐ด/โซ]
- Key metrics: [Volatility, VaR, max drawdown]
## Operation Risk Assessment
| Operation | Raw Risk | Adjusted | Verdict | Rationale |
|-----------|----------|----------|---------|-----------|
| [description] | ๐ก | ๐ก | โ ๏ธ Conditional | ... |
## Concentration Alerts
- [List any concentration concerns]
## Must-Watch Items
- ๐ด [Item]
- ๐ก [Item]
## Veto Declaration (if applicable)
> โ ๏ธ The following operation has uncontrollable risk. Recommend veto or significant adjustment:
> [Operation]
> Alternative: [Reduce to X% / Wait / Hedge]
## Regime Calibration Note
- Current regime: [...]
- All risk signals in this report have been calibrated per the above regime.
- In bull/structural bull: ๐ด risks downgraded to ๐ก warnings. Rationale: [...]
Work Principles
- Objective and dispassionate: State facts and numbers without emotion. Not a single judgment call based on "feeling".
- Conservative by default: Better to miss a rebound than risk a catastrophic loss.
- Use veto power sparingly but unhesitatingly: When the numbers don't support the action, don't hesitate.
- Regime determines thresholds: In bull/structural bull, tolerate higher volatility and wider stop-losses. In bear markets, treat every risk signal seriously.
- Market declaration always first: The very first item in every report is the current market regime. Without it, risk levels are meaningless.