By minihellboy
Mine, evaluate, backtest, and benchmark quantitative alpha factors using the FactorMiner research engine, with data ingestion from financial data providers and automated research report generation.
Combine factors into a composite signal and quintile-backtest it
Run a FactorMiner benchmark — Table 1, ablation, cost pressure, or suite
Evaluate a factor library's out-of-sample IC, ICIR, and decay
Mine a new alpha-factor library from a market dataset
Generate a research note, plots, and exports from a finished run
Combine a factor library into a composite signal and quintile-backtest it under transaction costs — long-short return, monotonicity, turnover, and tearsheets. Use for the portfolio-level view that single-factor IC does not give. Triggers on "backtest", "composite signal", "combine factors", "long-short return", "portfolio", "quintile", "tearsheet", "transaction costs".
Run FactorMiner benchmark workflows — the Table 1 Top-K freeze benchmark, memory and strategy ablations, transaction-cost pressure tests, and the full suite. Use to compare FactorMiner against baselines or to reproduce paper results. Triggers on "benchmark", "ablation", "compare to baseline", "reproduce table 1", "cost pressure", "benchmark suite".
Validate, resample, and ingest market data for factor mining. Schema-checks OHLCV files (CSV/Parquet/HDF5), resamples bar frequencies, and pulls live data from external MCP connectors (FactSet, Daloopa, Morningstar). Use before any mining run. Triggers on "validate data", "check my dataset", "resample", "load market data", "fetch data", "ingest prices", "is this dataset usable".
Evaluate a factor library — recompute Information Coefficient (IC), ICIR, win rate, and turnover on held-out data, and surface train→test decay. Use to judge how good a mined library actually is out of sample. Triggers on "evaluate factors", "compute IC", "how good is this library", "factor metrics", "ICIR", "is this factor overfit", "out-of-sample".
Discover alpha factors by running the FactorMiner research engine — the paper-faithful Ralph loop or the enhanced Helix loop (causal validation, regime conditioning, multi-specialist debate, canonicalization). Use to generate a new factor library from a validated dataset. Triggers on "mine factors", "discover factors", "run mining", "find alpha", "helix loop", "ralph loop", "build a factor library".
External network access
Connects to servers outside your machine
Uses power tools
Uses Bash, Write, or Edit tools
Own this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimOwn this plugin?
Verify ownership to unlock analytics, metadata editing, and a verified badge. GitHub access is read-only (username + org membership).
Sign in to claimBased on adoption, maintenance, documentation, and repository signals. Not a security audit or endorsement.
A governed research engine for discovering, evaluating, and documenting interpretable alpha factors.
FactorMiner combines a typed formula DSL, LLM-guided search, structured memory, strict runtime recomputation, and reviewable research artifacts. It follows the system described in FactorMiner: A Self-Evolving Agent with Skills and Experience Memory for Financial Alpha Discovery and extends it with explicit architecture contracts, stronger validation, and a model-agnostic agent integration surface.
FactorMiner is research infrastructure. It proposes and evaluates artifacts; it does not recommend trades, size positions, bind risk limits, route orders, or operate an autonomous account.
| Surface | Purpose |
|---|---|
| Typed DSL and operator registry | Safe, interpretable formulas over OHLCV and registered feature leaves |
RalphLoop | Canonical paper-style generate/evaluate/evolve lane |
HelixLoop | Extended retrieval, debate, canonicalization, and validation lane |
| Policy-based memory | Paper, none, KG, family-, regime-, and edit-aware policies |
| Runtime evaluation | Formula recomputation on the supplied dataset; saved summaries are not trusted as truth |
| Benchmark runtime | Top-K freeze, memory/strategy ablations, CPCV/PBO, cost pressure, and efficiency |
| Research extensions | EDGAR/futures data, crowding, capacity, sensitivity, model-risk, and provenance artifacts |
| Agent gateway | MCP server plus a plugin and managed-agent reference integration |
The built-in catalog contains 110 normalized paper factors. Named third-party baselines are not all faithful reproductions; manifests label catalog subsets, proxies, runtime loops, and saved libraries explicitly. See Reproducibility before interpreting benchmark output.
The recommended contributor setup uses uv:
git clone https://github.com/minihellboy/factorminer.git
cd factorminer
uv sync --group dev --all-extras
For a smaller local environment:
uv sync --group dev
uv sync --group dev --extra llm # add hosted/local LLM providers
uv sync --group dev --extra mcp # add the MCP server
The portable default backend is NumPy. The CUDA extra is Linux-oriented; use
--gpu only where CUDA is available. A pip editable install also works:
python3 -m pip install -e ".[llm,mcp]"
No API key is required for the deterministic demo and mock workflow:
uv run python scripts/run_demo.py
uv run factorminer quickstart
uv run factorminer doctor --json
quickstart writes a small library and static report under
/tmp/factorminer-quickstart. To mine directly:
uv run factorminer -o /tmp/factorminer-run mine --mock -n 2 -b 8 -t 10
uv run factorminer session inspect /tmp/factorminer-run --telemetry
For real data, validate the schema first:
uv run factorminer validate-data path/to/market_data.csv
uv run factorminer -c factorminer.local.yaml -o output-real \
mine --data path/to/market_data.csv
The minimum panel fields are:
datetime, asset_id, open, high, low, close, volume, amount
Identifier aliases such as symbol, ticker, code, and ts_code are
accepted. Missing vwap and returns can be derived by the runtime layer.
Run the extended research lane:
uv run factorminer --cpu helix --mock --debate --canonicalize -n 2 -b 8 -t 10
Recompute and evaluate a saved library:
uv run factorminer --cpu evaluate output/factor_library.json \
--mock --period both --top-k 10
Build a composite on explicit fit/evaluation splits:
uv run factorminer --cpu combine output/factor_library.json \
--mock --fit-period train --eval-period test --method all \
--selection lasso --top-k 20
Run a benchmark or the standalone Phase 2 report builder:
uv run factorminer --cpu --config factorminer/configs/paper_repro.yaml \
benchmark table1 --mock --baseline factor_miner
uv run factorminer --cpu benchmark ablation-strategy --mock \
--baseline factor_miner
uv run python scripts/run_phase2_benchmark.py --mock
The CLI also exposes data validation/resampling, visualization, CPCV, portfolio
construction, crowding and sensitivity diagnostics, EDGAR/futures attachment,
research ingestion, RFT dataset export, sealed search, model co-optimization,
and MCP transports. Use uv run factorminer --help and command-level --help
as the authoritative command reference.
npx claudepluginhub minihellboy/factorminer --plugin factor-researcherQuantitative research metrics: SOTA evaluation for range bars, Sharpe ratios with daily aggregation, ML prediction quality (IC, autocorrelation), crypto-specific considerations
量化交易策略開發
Quantitative analysis, algorithmic trading strategies, financial modeling, portfolio risk management, and backtesting
迅投 QMT 量化交易 AI 技能集:因子回测脚本生成(后续将补充期货交易、实盘模板、信号推送等技能)
Finance research, trading, risk, and portfolio Agent Skills grounded in LLMQuant Data. Bundles every llmquant-* category skill under skills/.
FinLab quantitative trading skills for global stock markets (TW, US, KR, JP, HK) - includes strategy development, backtesting, data analysis, and factor research