-
Notifications
You must be signed in to change notification settings - Fork 0
02 Feature Engineering Pipeline
The TriDomainMoE feature engineering suite is implemented in src/features/tri_domain_features.py to ensure 100% strict mathematical parity between offline historical training, vectorized backtesting, and sub-20ms live MT5 execution.
| Index | Feature Symbol | Mathematical Formulation | Economic Rationale |
|---|---|---|---|
| 0 | log_ret |
Instantaneous bar return | |
| 1 | vol_20 |
Short-term realized volatility baseline | |
| 2 | fracdiff |
Stationarity preserving continuous long-memory price action | |
| 3 | vol_mom |
Surge volume above rolling equilibrium | |
| 4 | parkinson_ratio |
Distinguishes wick fakeouts from authentic directional expansion | |
| 5 | bar_ofi |
Bar-level Order Flow Imbalance proxy ( |
Integer differencing (
Using the Augmented Dickey-Fuller (ADF) test,
Using intraday High and Low bounds, the Parkinson volatility estimator is:
When
| Index | Feature Symbol | Mathematical Formulation | Economic Rationale |
|---|---|---|---|
| 0 | h1_log_ret |
Higher-timeframe macro drift | |
| 1 | h1_trend_50 |
$(C_{H1} - \text{EMA}{50}) / \text{ATR}{14}$ | Macro trend persistence relative to average true range |
| 2 | h1_vol_24h |
24-hour annualized historical crypto volatility | |
| 3 | h4_trend_200 |
$(C_{H1} - \text{EMA}{200}) / \text{ATR}{14}$ | Multi-day swing regime anchor |
| 4 | d1_trend_600 |
$(C_{H1} - \text{EMA}{600}) / \text{ATR}{14}$ | Secular macro regime anchor (institutional bias) |
| 5 | vol_term_slope |
Term structure curve (short vs weekly volatility expansion) |
| Index | Feature Symbol | Mathematical Formulation | Economic Rationale |
|---|---|---|---|
| 0 | polarity |
Net directional sentiment across crypto news releases | |
| 1 | uncertainty |
Entropy / ambiguity score in institutional reportage | |
| 2 | monetary_score |
Central bank liquidity expectations (Fed / DXY correlation) | |
| 3 | geopolitics |
Geopolitical risk and safe-haven rotation intensity | |
| 4 | corporate_flow |
Institutional crypto treasury and ETF net flows | |
| 5 | commodities |
Cross-asset commodity / energy inflation pressures | |
| 6 | cvd_flow_24h |
Continuous 24h rolling Cumulative Volume Delta (CVD) | |
| 7 | spread_basis_ratio |
Real-time liquidity friction relative to available price volatility |
From tick-level trade streams, Volume-Synchronized OFI calculates the net pressure on the bid and ask queues:
Volume-Synchronized Probability of Toxicity (VPIN) tracks informed order dumping:
When
TriDomainMoE: Institutional Multi-Domain Mixture of Experts
Official Web Portal β’ GitHub Source β’ Hugging Face Model Hub
Cryptocurrency Research Grants (USDT TRC20): TC8TFkemSFGEeBPF5ZQKbmjK97FVEGwrwc
- Home
- 01 Architecture & Foundations
- 02 Feature Engineering Pipeline
- 03 Execution & MT5 Bridge
- 04 Continual ReCAP Adaptation
- 05 Verified 1-Year Benchmark
- 06 Live Trading & Deployment
- 07 Hugging Face Model Zoo
- Asset: USDT (Tether)
- Network: TRON (TRC20)
-
Address:
TC8TFkemSFGEeBPF5ZQKbmjK97FVEGwrwc