Premchan369 commited on
Commit
b24a9f7
Β·
verified Β·
1 Parent(s): 4a54d99

Update model card with v3.1 - 33 quant modules, new regime detection, transaction costs, drawdown control, liquidity risk, data snooping guard, event study, cross-sectional factors, factor risk model

Browse files
Files changed (1) hide show
  1. README.md +61 -3
README.md CHANGED
@@ -13,7 +13,7 @@ language:
13
  - en
14
  ---
15
 
16
- # AlphaForge v3.0 β€” Institutional-Grade Quantitative Trading System
17
 
18
  > **A research-backed, modular, institutional-grade quantitative trading framework.**
19
  >
@@ -49,6 +49,11 @@ Features: real-time stock analysis, AI deep analysis via K2 Think V2, portfolio
49
  - Optimize portfolios with real-world constraints
50
  - Price options with ML (beating Black-Scholes)
51
  - Run **honest** backtests with walk-forward validation
 
 
 
 
 
52
 
53
  The system evolved through **three major versions**:
54
 
@@ -57,6 +62,7 @@ The system evolved through **three major versions**:
57
  | **v1.0** | 8 | Basic modular pipeline |
58
  | **v2.0** | 18 | Walk-forward validation, wavelet denoising, GP alpha mining, MTL, execution algos, risk management, microstructure, real news APIs, hyperparameter sweeps, GPU optimization |
59
  | **v3.0** | 25+ | RL execution, Level 2 LOB, market making, synthetic market simulation, online learning, stat arb, conformal prediction, feature stores, adversarial defense, A/B testing, DCC-GARCH regimes |
 
60
 
61
  ---
62
 
@@ -72,15 +78,30 @@ Sentiment Model (S) β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
72
  Market Data ─────────► Volatility Model (Οƒ) ───► Covariance (Ξ£)
73
 
74
  ΞΌ + Ξ£ ───────────────► Portfolio Optimizer ───► Weights (w)
 
 
 
 
 
 
75
 
76
  Weights + Market ───► Backtest / PnL
 
 
 
 
77
 
78
  Options Model (10) ─► Derivative Signals / Hedging
 
 
 
 
 
79
  ```
80
 
81
  ---
82
 
83
- ## πŸ“ Module Overview (25+ Modules)
84
 
85
  | Module | Purpose | Research Basis |
86
  |--------|---------|--------------|
@@ -112,6 +133,14 @@ Options Model (10) ─► Derivative Signals / Hedging
112
  | `ab_testing.py` | Sequential testing, multiple comparison correction | Johari et al. 2022 |
113
  | `correlation_regime.py` | DCC-GARCH dynamic correlations, Ledoit-Wolf shrinkage | Engle 2002, Ledoit & Wolf 2004 |
114
  | `news_data_integration.py` | NewsAPI, RSS, GDELT, Reddit/StockTwits aggregation | Alternative data best practices |
 
 
 
 
 
 
 
 
115
 
116
  ---
117
 
@@ -131,6 +160,10 @@ The system tracks and reports:
131
  | **Win Rate** | % of positive return days | Reported |
132
  | **Profit Factor** | Gross profit / Gross loss | > 1.2 |
133
  | **GOAT Score** | Composite 0-100 scoring system | > 70 |
 
 
 
 
134
 
135
  ---
136
 
@@ -173,6 +206,21 @@ This triggered the addition of 11 elite-tier modules representing what actual qu
173
 
174
  ---
175
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
176
  ## πŸ”— K2 Think V2 Integration
177
 
178
  A dedicated Gradio Space integrates the AlphaForge quant pipeline with MBZUAI's K2 Think V2 reasoning API:
@@ -185,6 +233,7 @@ A dedicated Gradio Space integrates the AlphaForge quant pipeline with MBZUAI's
185
  - Portfolio optimization with efficient frontier visualization
186
  - AI portfolio advice (health score, concentration risk, rebalancing)
187
  - Direct chat with K2 Think V2 for any financial question
 
188
 
189
  ---
190
 
@@ -292,6 +341,15 @@ Every major component is backed by published research:
292
  | RL Execution | Buehler et al. 2019 | Deep Hedging (PPO) |
293
  | Market Making | Avellaneda & Stoikov 2008 | Inventory management |
294
  | Correlation Regimes | Engle 2002 | DCC-GARCH dynamic correlations |
 
 
 
 
 
 
 
 
 
295
 
296
  ---
297
 
@@ -320,4 +378,4 @@ MIT License β€” see LICENSE
320
 
321
  ---
322
 
323
- *Built by Premchan | AlphaForge v3.0 | Institutional-Grade Quantitative Trading*
 
13
  - en
14
  ---
15
 
16
+ # AlphaForge v3.1 β€” Institutional-Grade Quantitative Trading System
17
 
18
  > **A research-backed, modular, institutional-grade quantitative trading framework.**
19
  >
 
49
  - Optimize portfolios with real-world constraints
50
  - Price options with ML (beating Black-Scholes)
51
  - Run **honest** backtests with walk-forward validation
52
+ - Control drawdowns with CPPI and Kelly criterion
53
+ - Guard against data snooping bias
54
+ - Detect market regimes and adapt strategies
55
+ - Measure liquidity risk and position capacity
56
+ - Model transaction costs with market impact
57
 
58
  The system evolved through **three major versions**:
59
 
 
62
  | **v1.0** | 8 | Basic modular pipeline |
63
  | **v2.0** | 18 | Walk-forward validation, wavelet denoising, GP alpha mining, MTL, execution algos, risk management, microstructure, real news APIs, hyperparameter sweeps, GPU optimization |
64
  | **v3.0** | 25+ | RL execution, Level 2 LOB, market making, synthetic market simulation, online learning, stat arb, conformal prediction, feature stores, adversarial defense, A/B testing, DCC-GARCH regimes |
65
+ | **v3.1** | 33 | Regime detection, transaction costs, drawdown control, liquidity risk, data snooping guard, event study, cross-sectional factors, factor risk model |
66
 
67
  ---
68
 
 
78
  Market Data ─────────► Volatility Model (Οƒ) ───► Covariance (Ξ£)
79
 
80
  ΞΌ + Ξ£ ───────────────► Portfolio Optimizer ───► Weights (w)
81
+ ↓ ↓
82
+ Regime Detection Drawdown Control
83
+ (HMM/GMM) (CPPI / Kelly)
84
+ ↓ ↓
85
+ Regime-Conditioned Dynamic Leverage
86
+ Alpha Position Sizing
87
 
88
  Weights + Market ───► Backtest / PnL
89
+ ↓
90
+ Transaction Cost Model (market impact)
91
+ ↓
92
+ Net Returns
93
 
94
  Options Model (10) ─► Derivative Signals / Hedging
95
+
96
+ Event Study ───► Event-Driven Alpha
97
+
98
+ Cross-Sectional Factors ───► Style Factor Exposure
99
+ Factor Risk Model ───► Risk Decomposition
100
  ```
101
 
102
  ---
103
 
104
+ ## πŸ“ Module Overview (33 Modules)
105
 
106
  | Module | Purpose | Research Basis |
107
  |--------|---------|--------------|
 
133
  | `ab_testing.py` | Sequential testing, multiple comparison correction | Johari et al. 2022 |
134
  | `correlation_regime.py` | DCC-GARCH dynamic correlations, Ledoit-Wolf shrinkage | Engle 2002, Ledoit & Wolf 2004 |
135
  | `news_data_integration.py` | NewsAPI, RSS, GDELT, Reddit/StockTwits aggregation | Alternative data best practices |
136
+ | `regime_detection.py` | HMM/GMM market regime classifier, regime-conditioned Sharpe | Hamilton 1989, Guidolin & Timmermann 2007 |
137
+ | `transaction_cost_model.py` | Market impact (square-root law), spread, fees, slippage | Almgren et al. 2005, Kissell & Glantz 2003 |
138
+ | `drawdown_control.py` | CPPI, Kelly criterion, dynamic leverage, position sizing | Perold & Sharpe 1988, Thorp 2006, Grossman & Zhou 1993 |
139
+ | `liquidity_risk.py` | Amihud illiquidity, bid-ask spread, Kyle's lambda, VPIN | Amihud 2002, Kyle 1985, Easley et al. 2012 |
140
+ | `data_snooping_guard.py` | White's Reality Check, FDR, Bonferroni, Holm correction | White 2000, Romano & Wolf 2005, Benjamini & Hochberg 1995 |
141
+ | `event_study.py` | Earnings drift, macro events, merger arbitrage, abnormal returns | MacKinlay 1997, Engelberg et al. 2012, Savor & Wilson 2014 |
142
+ | `cross_sectional_factors.py` | Fama-French 5-factor, momentum, quality, low-vol, liquidity | Fama & French 2015, Carhart 1997, Asness et al. 2013 |
143
+ | `factor_risk_model.py` | Barra-style multi-factor risk decomposition, risk budgeting | Grinold & Kahn 2000, Menchero et al. 2010 |
144
 
145
  ---
146
 
 
160
  | **Win Rate** | % of positive return days | Reported |
161
  | **Profit Factor** | Gross profit / Gross loss | > 1.2 |
162
  | **GOAT Score** | Composite 0-100 scoring system | > 70 |
163
+ | **Regime-Conditioned Sharpe** | Sharpe in current market regime | Contextual |
164
+ | **Transaction Cost Drag** | Annualized cost of trading | < 2% |
165
+ | **Liquidity Score** | Amihud illiquidity ranking | Reported |
166
+ | **Kelly Fraction** | Optimal leverage for growth | < 1.0 (practical) |
167
 
168
  ---
169
 
 
206
 
207
  ---
208
 
209
+ ## πŸ”₯ v3.1: The Honesty & Realism Update
210
+
211
+ The next tier of institutional realism added 8 critical modules that separate toy backtests from deployable systems:
212
+
213
+ 1. **Regime Detection** β€” HMM/GMM classifier for bull/bear/high-vol/mean-revert regimes with regime-conditioned Sharpe (Hamilton 1989)
214
+ 2. **Transaction Cost Model** β€” Square-root market impact law, spread costs, fees, optimal participation rate (Almgren et al. 2005)
215
+ 3. **Drawdown Control** β€” CPPI insurance, fractional Kelly criterion, dynamic leverage, volatility targeting (Perold & Sharpe 1988, Thorp 2006)
216
+ 4. **Liquidity Risk** β€” Amihud illiquidity, Kyle's lambda, VPIN, position capacity constraints (Amihud 2002, Kyle 1985)
217
+ 5. **Data Snooping Guard** β€” White's Reality Check, FDR control, Bonferroni/Holm corrections (White 2000, Benjamini & Hochberg 1995)
218
+ 6. **Event Study** β€” Post-earnings drift, macro event signals, merger arbitrage, abnormal returns (MacKinlay 1997, Savor & Wilson 2014)
219
+ 7. **Cross-Sectional Factors** β€” Fama-French 5-factor, momentum, quality, low-vol, liquidity style factors (Fama & French 2015, Carhart 1997)
220
+ 8. **Factor Risk Model** β€” Barra-style multi-factor decomposition, marginal risk contribution, risk parity (Grinold & Kahn 2000)
221
+
222
+ ---
223
+
224
  ## πŸ”— K2 Think V2 Integration
225
 
226
  A dedicated Gradio Space integrates the AlphaForge quant pipeline with MBZUAI's K2 Think V2 reasoning API:
 
233
  - Portfolio optimization with efficient frontier visualization
234
  - AI portfolio advice (health score, concentration risk, rebalancing)
235
  - Direct chat with K2 Think V2 for any financial question
236
+ - **NEW v3.1:** Regime overlay charts, position sizing recommendations, liquidity analysis, event calendar, transaction cost estimates
237
 
238
  ---
239
 
 
341
  | RL Execution | Buehler et al. 2019 | Deep Hedging (PPO) |
342
  | Market Making | Avellaneda & Stoikov 2008 | Inventory management |
343
  | Correlation Regimes | Engle 2002 | DCC-GARCH dynamic correlations |
344
+ | Regime Detection | Hamilton 1989 | HMM for nonstationary time series |
345
+ | Transaction Costs | Almgren et al. 2005 | Square-root market impact law |
346
+ | Drawdown Control | Perold & Sharpe 1988 | CPPI dynamic asset allocation |
347
+ | Kelly Criterion | Thorp 2006 | Fractional Kelly for practical trading |
348
+ | Liquidity Risk | Amihud 2002 | Illiquidity premium via price impact ratio |
349
+ | Data Snooping | White 2000 | Bootstrap reality check for multiple testing |
350
+ | Event Studies | MacKinlay 1997 | Abnormal return methodology |
351
+ | Fama-French Factors | Fama & French 2015 | 5-factor asset pricing model |
352
+ | Factor Risk | Grinold & Kahn 2000 | Multi-factor risk decomposition |
353
 
354
  ---
355
 
 
378
 
379
  ---
380
 
381
+ *Built by Premchan | AlphaForge v3.1 | 33 Quant Modules | Institutional-Grade Trading*