dragon-quant 缅A龙头识别工具
一款通过多维量化评分识别市场龙头的工具。基于 TMDX 获取股票行情,使用 SQLite 持久化数据,并具备完备的选股与选股回测能力。
目录
稳定性说明
选股与选股回测能力已经稳定,暂时不再迭代。当前重点是搭建模拟账户交易与回测系统,打通盘后复盘、集合竞价和账户交易链路。
| 功能 | 状态 | 预期稳定时间 |
|---|---|---|
scan 龙头扫描 |
稳定 | — |
review 龙头回测 |
稳定 | — |
prep 盘后复盘 |
快速迭代中 | 2026 年 12 月初 |
auction 集合竞价强度判断 |
快速迭代中 | 2026 年 12 月初 |
review-account 账户模拟交易与回测 |
快速迭代中 | 2026 年 12 月初 |
agent-skill 盘前预案复盘回测等 skills |
快速迭代中 | 2026 年 12 月中 |
快速使用
要求 Python ≥ 3.10,推荐使用 pipx 安装:
pipx install dragon-quant
# 当日收盘后扫描龙头
dragon-quant scan --top 5
# 回测扫描结果并打开面板
dragon-quant review --ui
只需查看已有回测结果时,运行 dragon-quant review --ui-only。
龙头扫描
在当日收盘后运行,扫描涨停候选股,通过多维量化评分识别市场龙头:
dragon-quant scan --top 5
龙头回测
这里的回测结果采用宽松口径:入选后首个非一字板交易日按最低价买入,统计后续最多 5 个交易日的最大收益与回撤。
# 回测已到观察期的扫描结果
dragon-quant review
# 打开龙头回测面板
dragon-quant review --ui-only
设计哲学
龙头不是预判出来的,而是根据盘面证据识别出来的。 评分器从带动性、领涨性、抗跌性、流动性和资金承接五个维度评估候选股:四项核心特征设置门槛,资金承接作为补充证据,避免单一高分掩盖明显短板。
模拟交易与回测的目标,是把盘后复盘、集合竞价和账户交易串成可回放、可验证的决策链,用统一的候选池、买卖规则、费用与成交假设检验策略,而不只展示选股收益。
目录结构
dragon_quant/
├── commands/ # CLI 命令入口
├── scan/ # 龙头扫描、五维评分与结果持久化
├── review/ # 龙头回测
├── review_account/ # 盘后复盘、集合竞价、模拟账户与交易策略
├── vpa/ # 量价分析
├── infra/ # 行情数据源、SQLite、缓存、因子与资产同步
└── tests/ # 单元、集成与离线 E2E 测试
web_ui/ # 回测与账户可视化面板
assets/ # 图标与 README 截图
docs/ # 模块与开发文档
archived_md/ # 已落地的调研与技术方案
免责声明
本工具仅供学习交流,不提供任何个股买卖建议。评分、回测与模拟交易的所有输出均为技术研究结果,不构成投资建议;据此操作产生的盈亏由使用者自行承担。
欢迎共建
欢迎通过 Issues 分享使用反馈、讨论策略与提出改进,也欢迎提交 PR 参与共建。
License
Metadata
Release files for dragon-quant 0.7.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dragon_quant-0.7.4.tar.gz | 733.2 kB | Without provenance | Details for dragon_quant-0.7.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dragon_quant-0.7.4-py3-none-any.whl | Python 3 | none | any | Details for dragon_quant-0.7.4-py3-none-any.whl |
Total release size: 1.6 MB
Release files / dragon_quant-0.7.4.tar.gz
| Download URL | dragon_quant-0.7.4.tar.gz |
|---|---|
| Size | 733.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a74d1ae8770393d38983c6c658e5d517163fee2b3ac5e07c8ea4e2bc46fb240d
|
|
BLAKE2b-256 checksum How to use checksums |
e48d3d7cbf4159d7c022f36e11174b0a2507951c80ea1e405c88a0c0066ba869
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.8
|
Release files / dragon_quant-0.7.4-py3-none-any.whl
| Download URL | dragon_quant-0.7.4-py3-none-any.whl |
|---|---|
| Size | 847.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0086c48b9f8922f7c2ea6979c7502a34bf3f6b60c01d718e3ec85530de555cdf
|
|
BLAKE2b-256 checksum How to use checksums |
2ad52ba9ba36668e1148f97010c16151c018a8f9fe43de8673c1b61e5a84f089
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.8
|
Security for dragon-quant 0.7.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.