hft-quant-expert

$npx mdskill add aAAaqwq/AGI-Super-Team/hft-quant-expert

Calculate optimal crypto trades with rigorous risk controls.

  • Generate signals using z-scores and Kelly Criterion sizing.
  • Integrates with DeFi protocols for gas and slippage accounting.
  • Validates strategies against lookahead and survivorship bias.
  • Outputs annualized Sharpe ratios and half-life metrics.

SKILL.md

.github/skills/hft-quant-expertView on GitHub ↗
---
name: hft-quant-expert
description: Quantitative trading expertise for DeFi and crypto derivatives. Use when building trading strategies, signals, risk management. Triggers on signal, backtest, alpha, sharpe, volatility, correlation, position size, risk.
---

# HFT Quant Expert

Quantitative trading expertise for DeFi and crypto derivatives.

## When to Use

- Building trading strategies and signals
- Implementing risk management
- Calculating position sizes
- Backtesting strategies
- Analyzing volatility and correlations

## Workflow

### Step 1: Define Signal

Calculate z-score or other entry signal.

### Step 2: Size Position

Use Kelly Criterion (0.25x) for position sizing.

### Step 3: Validate Backtest

Check for lookahead bias, survivorship bias, overfitting.

### Step 4: Account for Costs

Include gas + slippage in profit calculations.

---

## Quick Formulas
```python
# Z-score
zscore = (value - rolling_mean) / rolling_std

# Sharpe (annualized)
sharpe = np.sqrt(252) * returns.mean() / returns.std()

# Kelly fraction (use 0.25x)
kelly = (win_prob * win_loss_ratio - (1 - win_prob)) / win_loss_ratio

# Half-life of mean reversion
half_life = -np.log(2) / lambda_coef
```

## Common Pitfalls

- **Lookahead bias** - Using future data
- **Survivorship bias** - Only existing assets
- **Overfitting** - Too many parameters
- **Ignoring costs** - Gas + slippage
- **Wrong annualization** - 252 daily, 365*24 hourly

More from aAAaqwq/AGI-Super-Team

SkillDescription
a-fund-monitor监控 A 股基金实时估值与盘后净值,自动判断交易日并生成提醒或分析。
add-leadAdd company/person/relationship to CRM
ads-agentAI-агент для управления Facebook рекламой. Вызывай для анализа, оптимизации, создания кампаний и отчётов.
afrexai-compliance-auditRun internal compliance audits against major governance and security
afrexai-personal-financeComplete personal finance system — budgeting, debt payoff, investing, tax optimization, net worth tracking, and financial independence planning. Use when managing money, building wealth, paying off debt, planning retirement, or optimizing taxes. Zero dependencies.
after-salesUse when managing post-purchase experience, building customer loyalty, or increasing repeat purchases
agent-contactsAI agent contacts — add, list, remove MCP contacts. Use when someone gives an agent URL, or when you need to view/remove contacts.
agent-model-switcher批量查看和切换子 agent 的模型配置,用于统一调整多 agent 的 provider/model 设置。
agent-patternsFormat SPAWN REQUEST messages to launch parallel agents, generate structured agent status reports, and define communication protocols within the sprint system. Use when the user needs to coordinate multiple agents, format spawn requests, produce agent reports, or establish inter-agent communication patterns.
agent-task-confirmUse when confirming whether a dispatched agent task was actually received, activated, and progressing after sessions_send or other task handoff actions.