[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M770T5FJ8Z7B6PY2ND37HQDG":3,"skill-same:01M770T5FJ8Z7B6PY2ND37HQDG":46},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":26,"repositoryHtmlUrl":27,"repositoryHomepageUrl":28,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M770T5FJ8Z7B6PY2ND37HQDG","bowlong-quant-aio",null,"Lord1Egypt\u002Fawesome-skill-forge","Lord1Egypt","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99746359?v=4","01M7592YDNT0XK9WJ0T2MQVPDN","Mohamed Mounir Ali AL Keshita","01M75GRFNHC8VZNWEB8DKDE433",3,"MIT","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fb\u002Fbowlong-quant-aio\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: bowlong-quant-aio\nversion: 2.1.3\ndescription: 🐉 波龙股神量化交易系统 V2.1.1 — 价值投资导向的A股期货量化工作台。**V2.1优化版：解决追涨杀跌问题**，专注低估值优质股。多因子选股 · A股回测 · 华鑫QMT实盘 · 文华财经期货 · 实时风控。核心优化：涨幅过滤(3月≤50%\u002F1月≤25%)、RPS区间优化(70-85)、PE\u002FPB估值筛选(5-30\u002F\u003C5)、排除高位震荡股、排除涨停股。搜索关键词：波龙股神、量化交易、价值投资、选股、A股、期货、QMT、回测、策略、投资、股票、炒股、量化选股、自动交易、巧未来、西蒙斯。Keywords: Bowlong, Quant Trading, Value Investing, Stock Picker, A-Share, Futures, QMT, Wenhua, Backtest, Strategy, Investment, Stock Trading, Quantitative, Auto Trading, Stock Screening, Simons, Jarvis, AI Trading\nauthor: SimonsTang\nlicense: MIT\nhomepage: https:\u002F\u002Flearn2study.cn\nrepository: https:\u002F\u002Fgithub.com\u002Fsimonstang\u002Fbolong-quant\nmetadata:\n  openclaw:\n    emoji: \"📈\"\n    category: \"finance\"\n    tags: [\"A股\", \"期货\", \"量化\", \"QMT\", \"文华财经\", \"选股\", \"回测\", \"实盘\", \"风控\", \"波龙股神\", \"Bowlong\", \"tushare\", \"akshare\", \"量化交易\", \"股票\", \"炒股\", \"投资策略\", \"自动交易\", \"股票筛选\", \"技术分析\", \"巧未来\", \"西蒙斯\", \"贾维斯\", \"Quant Trading\", \"Stock Picker\", \"Futures\", \"Backtest\", \"AI Trading\", \"Investment\"]\n    requires:\n      bins: [\"python3\"]\n      env: [\"TUSHARE_TOKEN\"]\n---\n\n# quant-aio · A股期货一站式量化工作台\n\n> 选股 → 回测 → 实盘 → 风控，一个技能全搞定。\n\n## 功能概览\n\n```\n┌─────────────────────────────────────────────────────────┐\n│                  📈 quant-aio v1.0                      │\n├─────────────────────────────────────────────────────────┤\n│  📊 选股引擎   多因子筛选 · 行业轮动 · 自选股池管理        │\n│  🔁 回测系统   策略编写 · 历史回测 · 绩效报告              │\n│  ⚡ 实盘执行   华鑫QMT · 文华财经 · TBQuant3            │\n│  🔔 风险监控   仓位监控 · 回撤预警 · 异动推送             │\n└─────────────────────────────────────────────────────────┘\n```\n\n## 环境要求\n\n```bash\n# Python 3.8+\npip install pandas numpy tushare akshare scipy matplotlib\n\n# tushare pro（推荐，可申请免费token）\npip install tushare\n\n# 华鑫证券QMT Python API\n# 安装路径默认: C:\\Huaxin\\QMT\\bin\\Lib\\site-packages\\\n\n# 文华财经WH8 Python API\n# 安装路径: 文华财经安装目录下 wh8\\python\\\n\n# TBQuant3 Python API\n# 安装路径: 通联数据官网下载\n```\n\n## 环境变量\n\n```bash\n# tushare pro token（必须，申请: https:\u002F\u002Ftushare.pro\u002Fregister）\nexport TUSHARE_TOKEN=\"your_token_here\"\n\n# 华鑫QMT（可选，无则跳过实盘模块）\nexport QMT_ACCOUNT=\"your_account\"\nexport QMT_PASSWORD=\"your_password\"\n\n# 告警推送（可选）\nexport PUSH_TOKEN=\"telegram_bot_token\"\nexport PUSH_CHAT_ID=\"telegram_chat_id\"\n```\n\n## 模块一：选股引擎\n\n### 选股策略\n\n```bash\n# 运行选股（默认：多因子策略）\npython scripts\u002Fstock_picker.py\n\n# 指定策略\npython scripts\u002Fstock_picker.py --strategy momentum          # 动量策略\npython scripts\u002Fstock_picker.py --strategy value             # 价值策略\npython scripts\u002Fstock_picker.py --strategy growth            # 成长策略\npython scripts\u002Fstock_picker.py --strategy break_through     # 突破策略\n\n# 自定义参数\npython scripts\u002Fstock_picker.py --strategy momentum --top 20 --date 2026-03-27\n```\n\n### 因子配置\n\n编辑 `config\u002Ffactors.yaml` 调整因子权重：\n\n```yaml\nfactors:\n  fundamentals:\n    weight: 0.50          # 基本面权重\n    pe: [-30, 50]         # PE范围\n    roe: [5, 50]          # ROE范围\n    revenue_growth: 5      # 营收增速下限%\n    profit_growth: 5       # 净利润增速下限%\n\n  technical:\n    weight: 0.35          # 技术面权重\n    rsi: [30, 70]         # RSI范围\n    volume_ratio: 1.5      # 量比下限\n    break_20d: true        # 20日均线突破\n\n  sentiment:\n    weight: 0.15          # 资金流权重\n    north_money: 100      # 北向资金净流入下限（万）\n    margin_balance: 100    # 融资余额增速下限%\n```\n\n### 选股输出\n\n```\n# 输出路径: output\u002Fstock_picks_YYYYMMDD.csv\n\n股票代码 | 股票名称 | 综合得分 | PE | ROE | 北向资金 | 入选理由\n---------|---------|---------|-----|-----|---------|----------\n600519   | 贵州茅台 | 92      | 28  | 32  | +3285万 | 低估值+北向净流入\n000858   | 五粮液   | 87      | 22  | 28  | +2156万 | 突破20日均线\n...\n```\n\n## 模块二：回测系统\n\n### 运行回测\n\n```bash\n# 完整回测（2015-2026）\npython scripts\u002Fbacktest.py --strategy momentum\n\n# 近期回测（近一年）\npython scripts\u002Fbacktest.py --strategy momentum --period 1y\n\n# 指定股票池\npython scripts\u002Fbacktest.py --strategy momentum --pool 沪深300\n\n# 自定义参数\npython scripts\u002Fbacktest.py --strategy momentum \\\n  --start 2020-01-01 \\\n  --end 2026-03-27 \\\n  --initial_cash 100000 \\\n  --commission 0.0003 \\\n  --slippage 0.0001\n```\n\n### 回测报告\n\n运行后在 `output\u002Fbacktest_report_YYYYMMDD.md` 生成报告：\n\n```markdown\n# 📊 回测报告 · 动量策略\n- 时间: 2020-01-01 ~ 2026-03-27\n- 初始资金: 100,000 元\n- 最终净值: 285,600 元\n- 总收益率: +185.6%\n- 年化收益: 18.3%\n- 夏普比率: 1.85\n- 最大回撤: -22.4%\n- 胜率: 58.3%\n- 盈亏比: 1.72\n- 总交易次数: 347\n\n# 📈 收益曲线\n[图表路径: output\u002Fcharts\u002Fequity_curve.png]\n```\n\n### 支持指标\n\n| 类型 | 指标 |\n|------|------|\n| 趋势 | MA\u002FEMA\u002FSMA、MACD、布林带、ADX |\n| 动量 | RSI、KDJ、CCI、WR |\n| 量价 | 成交量、量比、换手率、OBV |\n| 风险 | ATR、VaR、Beta |\n\n### A股特有规则\n\n```python\n# 自动处理A股T+1制度\n# 自动处理涨跌停（涨停不买入，跌停不卖出）\n# 自动处理ST股（可选排除）\n# 自动处理停牌（跳过不交易）\n# 手续费默认：万3佣金 + 万0.5印花税\n```\n\n## 模块三：实盘执行\n\n### 华鑫证券QMT\n\n华鑫证券QMT使用 `Python API` 直连接口。\n\n```python\nfrom scripts.executor_huaxin import HuaxinExecutor\n\nexecutor = HuaxinExecutor(\n    account=\"你的账号\",\n    password=\"你的密码\",\n    mode=\"paper\"  # paper=模拟, live=实盘\n)\n\n# 下单\nexecutor.buy(\"600519\", price=1850, volume=100)  # 买入贵州茅台\nexecutor.sell(\"600519\", price=1900, volume=100) # 卖出\n\n# 查询\nexecutor.positions()   # 当前持仓\nexecutor.orders()      # 订单状态\nexecutor.balance()     # 账户余额\n```\n\n### 文华财经WH8\n\n文华财经使用 `Python SDK` 接口。\n\n```python\nfrom scripts.executor_wenhua import WenhuaExecutor\n\nexecutor = WenhuaExecutor(\n    mode=\"paper\"  # paper=模拟, live=实盘\n)\n\n# 期货下单\nexecutor.buy(\"IF2504\", price=3800, lots=1)    # 买入IF股指期货\nexecutor.sell(\"IC2504\", price=5800, lots=1)  # 卖出IC\n\n# 策略执行\nexecutor.run_strategy(\"momentum_20min\")\n```\n\n### TBQuant3\n\nTBQuant3通过 `Python API` 接入。\n\n```python\nfrom scripts.executor_tbquant import TBQuantExecutor\n\nexecutor = TBQuantExecutor(mode=\"paper\")\n\n# 商品期货\nexecutor.buy(\"CU2504\", price=72000, lots=1)  # 沪铜\nexecutor.sell(\"RB2504\", price=3500, lots=1)  # 螺纹钢\n```\n\n### 实盘日志\n\n```\n[2026-03-27 09:35:01] 信号: 买入 600519 @ 1850\n[2026-03-27 09:35:02] 订单发送成功, OrderID: 12345678\n[2026-03-27 09:35:05] 订单成交, 成交价: 1850.2\n[2026-03-27 09:35:05] 持仓更新: 600519 x 100股, 成本: 1850.2\n```\n\n## 模块四：风险监控\n\n### 监控面板\n\n```bash\n# 启动实时监控\npython scripts\u002Frisk_monitor.py\n\n# 启动并推送到Telegram\npython scripts\u002Frisk_monitor.py --push telegram\n```\n\n### 风控规则\n\n编辑 `config\u002Frisk_rules.yaml`：\n\n```yaml\nrisk_rules:\n  # 仓位限制\n  max_position_per_stock: 0.20       # 单股最大仓位20%\n  max_total_position: 0.80           # 总仓位上限80%\n  min_cash_reserve: 0.10             # 最低现金储备10%\n\n  # 回撤限制\n  max_daily_loss: 0.02               # 单日最大亏损2%\n  max_total_drawdown: 0.15           # 总回撤上限15%\n  stop_loss_per_trade: 0.05          # 单笔止损5%\n\n  # 预警规则\n  alert_on_position_change: true     # 仓位变化告警\n  alert_on_drawdown_threshold: 0.10 # 回撤10%告警\n  alert_on_unusual_volume: true       # 异动告警\n\n  # 交易限制\n  max_trades_per_day: 10            # 每日最大交易次数\n  avoid_limit_up: true              # 避免涨停板买入\n  avoid_limit_down: true             # 避免跌停板卖出\n  avoid_st_stocks: false            # 排除ST股\n```\n\n### 风控报告\n\n```markdown\n# 🔔 风控日报 · 2026-03-27\n\n## 持仓状况\n| 股票 | 持仓 | 成本 | 现价 | 盈亏 | 仓位 |\n|------|------|------|------|------|------|\n| 600519 | 500 | 1800 | 1850 | +2.78% | 18.5% |\n\n## 风控指标\n- 总仓位: 45.2% ✅ (上限80%)\n- 现金储备: 54.8% ✅ (下限10%)\n- 今日亏损: -0.8% ✅ (上限2%)\n- 总回撤: -3.2% ✅ (上限15%)\n\n## 告警记录\n[无]\n\n## 建议\n✅ 所有指标正常，继续执行策略\n```\n\n## 数据源配置\n\n### tushare pro（推荐）\n\n```bash\n# 安装\npip install tushare\n\n# 配置token（在 tushare.pro 注册获取免费token）\n# 编辑 config\u002Fdata_source.yaml\n```\n\n```yaml\ndata_source:\n  primary: tushare_pro\n  tushare:\n    token: \"${TUSHARE_TOKEN}\"  # 设置环境变量\n    high_priority: true         # 优先使用日线以上数据\n\n  fallback: akshare\n  akshare:\n    free: true\n    delay: 15                  # 数据延迟15分钟\n```\n\n### 数据更新\n\n```bash\n# 更新日线数据\npython scripts\u002Fupdate_data.py --freq daily\n\n# 更新分钟线数据\npython scripts\u002Fupdate_data.py --freq 5min --days 30\n\n# 全量更新（首次运行）\npython scripts\u002Fupdate_data.py --full\n```\n\n## 目录结构\n\n```\nquant-aio\u002F\n├── SKILL.md                      # 本文件\n├── README.md                     # 详细使用说明\n├── scripts\u002F\n│   ├── stock_picker.py          # 选股引擎\n│   ├── backtest.py              # 回测系统\n│   ├── executor_huaxin.py       # 华鑫QMT执行器\n│   ├── executor_wenhua.py       # 文华财经执行器\n│   ├── executor_tbquant.py      # TBQuant3执行器\n│   ├── risk_monitor.py          # 风险监控\n│   ├── update_data.py           # 数据更新\n│   └── report_generator.py      # 报告生成\n├── config\u002F\n│   ├── config.yaml              # 主配置\n│   ├── factors.yaml             # 选股因子配置\n│   ├── risk_rules.yaml          # 风控规则\n│   └── strategies.yaml          # 策略模板\n├── references\u002F\n│   ├── qmt_api.md              # 华鑫QMT API文档\n│   ├── wenhua_api.md           # 文华财经API文档\n│   ├── tbquant_api.md          # TBQuant3 API文档\n│   ├── tushare_guide.md        # tushare使用指南\n│   └── data_sources.md         # 数据源说明\n└── output\u002F\n    ├── stock_picks\u002F            # 选股结果\n    ├── backtest_reports\u002F       # 回测报告\n    └── charts\u002F                 # 图表输出\n```\n\n## 快速开始\n\n```bash\n# 1. 安装依赖\npip install pandas numpy tushare akshare scipy matplotlib\n\n# 2. 配置（复制并编辑）\ncp config\u002Fconfig.yaml.example config\u002Fconfig.yaml\n\n# 3. 设置环境变量\nexport TUSHARE_TOKEN=\"你的token\"\n\n# 4. 运行选股\npython scripts\u002Fstock_picker.py --top 20\n\n# 5. 运行回测\npython scripts\u002Fbacktest.py --strategy momentum\n\n# 6. 启动风控监控\npython scripts\u002Frisk_monitor.py --push telegram\n```\n\n## 注意事项\n\n⚠️ **实盘交易有风险，请务必先在模拟盘测试稳定后再使用实盘。**\n⚠️ **本工具仅供学习和研究使用，盈亏自负。**\n⚠️ **请遵守相关法律法规和券商规定。**\n\n## 更新日志\n\n### v2.1.1 (2026-04-12)\n- **价值投资导向优化**：解决追涨杀跌问题\n- 增加涨幅过滤：近3月涨幅≤50%，近1月涨幅≤25%\n- RPS优化：70-85为最佳区间，排除>90的高位股\n- 估值筛选：PE 5-30，PB\u003C5\n- 排除高位震荡股和涨停股\n- 投资理念：从追涨杀跌转变为价值投资\n- 避免选到招商轮船、中远海能等已涨2-3倍的高位股\n\n### v2.1.0 (2026-04-11)\n- V2.1版本发布\n\n### v2.0.0 (2026-03-27)\n- 正式命名为\"波龙股神量化交易系统\"\n- 开发者：SimonsTang\n- 公司：上海巧未来人工智能科技有限公司\n- 开源代码，MIT协议\n\n### v1.0.0 (2026-03-27)\n- 初始版本\n- 支持选股、回测、风控\n- 支持华鑫QMT、文华财经WH8、TBQuant3实盘接口\n- 支持tushare pro、akshare数据源\n\n---\n\n## 📜 版权声明\n\n**波龙股神量化交易系统 V2.0**\n\n- © 2026 **SimonsTang \u002F 上海巧未来人工智能科技有限公司** 版权所有\n- 开源协议：MIT License\n- 源码开放，欢迎完善，共同进步\n- GitHub：https:\u002F\u002Fgithub.com\u002Fsimonstang\u002Fbolong-quant\n- 联系：learn2study@163.com\n- 网站：https:\u002F\u002Flearn2study.cn\n\n_学来学去学习社 · 让学习更有趣更高效_\n","# quant-aio · A股期货一站式量化工作台\n\n> 选股 → 回测 → 实盘 → 风控，一个技能全搞定。\n\n## 功能概览\n\n```\n┌─────────────────────────────────────────────────────────┐\n│                  📈 quant-aio v1.0                      │\n├─────────────────────────────────────────────────────────┤\n│  📊 选股引擎   多因子筛选 · 行业轮动 · 自选股池管理        │\n│  🔁 回测系统   策略编写 · 历史回测 · 绩效报告              │\n│  ⚡ 实盘执行   华鑫QMT · 文华财经 · TBQuant3            │\n│  🔔 风险监控   仓位监控 · 回撤预警 · 异动推送             │\n└─────────────────────────────────────────────────────────┘\n```\n\n## 环境要求\n\n```bash\n# Python 3.8+\npip install pandas numpy tushare akshare scipy matplotlib\n\n# tushare pro（推荐，可申请免费token）\npip install tushare\n\n# 华鑫证券QMT Python API\n# 安装路径默认: C:\\Huaxin\\QMT\\bin\\Lib\\site-packages\\\n\n# 文华财经WH8 Python API\n# 安装路径: 文华财经安装目录下 wh8\\python\\\n\n# TBQuant3 Python API\n# 安装路径: 通联数据官网下载\n```\n\n## 环境变量\n\n```bash\n# tushare pro token（必须，申请: https:\u002F\u002Ftushare.pro\u002Fregister）\nexport TUSHARE_TOKEN=\"your_token_here\"\n\n# 华鑫QMT（可选，无则跳过实盘模块）\nexport QMT_ACCOUNT=\"your_account\"\nexport QMT_PASSWORD=\"your_password\"\n\n# 告警推送（可选）\nexport PUSH_TOKEN=\"telegram_bot_token\"\nexport PUSH_CHAT_ID=\"telegram_chat_id\"\n```\n\n## 模块一：选股引擎\n\n### 选股策略\n\n```bash\n# 运行选股（默认：多因子策略）\npython scripts\u002Fstock_picker.py\n\n# 指定策略\npython scripts\u002Fstock_picker.py --strategy momentum          # 动量策略\npython scripts\u002Fstock_picker.py --strategy value             # 价值策略\npython scripts\u002Fstock_picker.py --strategy growth            # 成长策略\npython scripts\u002Fstock_picker.py --strategy break_through     # 突破策略\n\n# 自定义参数\npython scripts\u002Fstock_picker.py --strategy momentum --top 20 --date 2026-03-27\n```\n\n### 因子配置\n\n编辑 `config\u002Ffactors.yaml` 调整因子权重：\n\n```yaml\nfactors:\n  fundamentals:\n    weight: 0.50          # 基本面权重\n    pe: [-30, 50]         # PE范围\n    roe: [5, 50]          # ROE范围\n    revenue_growth: 5      # 营收增速下限%\n    profit_growth: 5       # 净利润增速下限%\n\n  technical:\n    weight: 0.35          # 技术面权重\n    rsi: [30, 70]         # RSI范围\n    volume_ratio: 1.5      # 量比下限\n    break_20d: true        # 20日均线突破\n\n  sentiment:\n    weight: 0.15          # 资金流权重\n    north_money: 100      # 北向资金净流入下限（万）\n    margin_balance: 100    # 融资余额增速下限%\n```\n\n### 选股输出\n\n```\n# 输出路径: output\u002Fstock_picks_YYYYMMDD.csv\n\n股票代码 | 股票名称 | 综合得分 | PE | ROE | 北向资金 | 入选理由\n---------|---------|---------|-----|-----|---------|----------\n600519   | 贵州茅台 | 92      | 28  | 32  | +3285万 | 低估值+北向净流入\n000858   | 五粮液   | 87      | 22  | 28  | +2156万 | 突破20日均线\n...\n```\n\n## 模块二：回测系统\n\n### 运行回测\n\n```bash\n# 完整回测（2015-2026）\npython scripts\u002Fbacktest.py --strategy momentum\n\n# 近期回测（近一年）\npython scripts\u002Fbacktest.py --strategy momentum --period 1y\n\n# 指定股票池\npython scripts\u002Fbacktest.py --strategy momentum --pool 沪深300\n\n# 自定义参数\npython scripts\u002Fbacktest.py --strategy momentum \\\n  --start 2020-01-01 \\\n  --end 2026-03-27 \\\n  --initial_cash 100000 \\\n  --commission 0.0003 \\\n  --slippage 0.0001\n```\n\n### 回测报告\n\n运行后在 `output\u002Fbacktest_report_YYYYMMDD.md` 生成报告：\n\n```markdown\n# 📊 回测报告 · 动量策略\n- 时间: 2020-01-01 ~ 2026-03-27\n- 初始资金: 100,000 元\n- 最终净值: 285,600 元\n- 总收益率: +185.6%\n- 年化收益: 18.3%\n- 夏普比率: 1.85\n- 最大回撤: -22.4%\n- 胜率: 58.3%\n- 盈亏比: 1.72\n- 总交易次数: 347\n\n# 📈 收益曲线\n[图表路径: output\u002Fcharts\u002Fequity_curve.png]\n```\n\n### 支持指标\n\n| 类型 | 指标 |\n|------|------|\n| 趋势 | MA\u002FEMA\u002FSMA、MACD、布林带、ADX |\n| 动量 | RSI、KDJ、CCI、WR |\n| 量价 | 成交量、量比、换手率、OBV |\n| 风险 | ATR、VaR、Beta |\n\n### A股特有规则\n\n```python\n# 自动处理A股T+1制度\n# 自动处理涨跌停（涨停不买入，跌停不卖出）\n# 自动处理ST股（可选排除）\n# 自动处理停牌（跳过不交易）\n# 手续费默认：万3佣金 + 万0.5印花税\n```\n\n## 模块三：实盘执行\n\n### 华鑫证券QMT\n\n华鑫证券QMT使用 `Python API` 直连接口。\n\n```python\nfrom scripts.executor_huaxin import HuaxinExecutor\n\nexecutor = HuaxinExecutor(\n    account=\"你的账号\",\n    password=\"你的密码\",\n    mode=\"paper\"  # paper=模拟, live=实盘\n)\n\n# 下单\nexecutor.buy(\"600519\", price=1850, volume=100)  # 买入贵州茅台\nexecutor.sell(\"600519\", price=1900, volume=100) # 卖出\n\n# 查询\nexecutor.positions()   # 当前持仓\nexecutor.orders()      # 订单状态\nexecutor.balance()     # 账户余额\n```\n\n### 文华财经WH8\n\n文华财经使用 `Python SDK` 接口。\n\n```python\nfrom scripts.executor_wenhua import WenhuaExecutor\n\nexecutor = WenhuaExecutor(\n    mode=\"paper\"  # paper=模拟, live=实盘\n)\n\n# 期货下单\nexecutor.buy(\"IF2504\", price=3800, lots=1)    # 买入IF股指期货\nexecutor.sell(\"IC2504\", price=5800, lots=1)  # 卖出IC\n\n# 策略执行\nexecutor.run_strategy(\"momentum_20min\")\n```\n\n### TBQuant3\n\nTBQuant3通过 `Python API` 接入。\n\n```python\nfrom scripts.executor_tbquant import TBQuantExecutor\n\nexecutor = TBQuantExecutor(mode=\"paper\")\n\n# 商品期货\nexecutor.buy(\"CU2504\", price=72000, lots=1)  # 沪铜\nexecutor.sell(\"RB2504\", price=3500, lots=1)  # 螺纹钢\n```\n\n### 实盘日志\n\n```\n[2026-03-27 09:35:01] 信号: 买入 600519 @ 1850\n[2026-03-27 09:35:02] 订单发送成功, OrderID: 12345678\n[2026-03-27 09:35:05] 订单成交, 成交价: 1850.2\n[2026-03-27 09:35:05] 持仓更新: 600519 x 100股, 成本: 1850.2\n```\n\n## 模块四：风险监控\n\n### 监控面板\n\n```bash\n# 启动实时监控\npython scripts\u002Frisk_monitor.py\n\n# 启动并推送到Telegram\npython scripts\u002Frisk_monitor.py --push telegram\n```\n\n### 风控规则\n\n编辑 `config\u002Frisk_rules.yaml`：\n\n```yaml\nrisk_rules:\n  # 仓位限制\n  max_position_per_stock: 0.20       # 单股最大仓位20%\n  max_total_position: 0.80           # 总仓位上限80%\n  min_cash_reserve: 0.10             # 最低现金储备10%\n\n  # 回撤限制\n  max_daily_loss: 0.02               # 单日最大亏损2%\n  max_total_drawdown: 0.15           # 总回撤上限15%\n  stop_loss_per_trade: 0.05          # 单笔止损5%\n\n  # 预警规则\n  alert_on_position_change: true     # 仓位变化告警\n  alert_on_drawdown_threshold: 0.10 # 回撤10%告警\n  alert_on_unusual_volume: true       # 异动告警\n\n  # 交易限制\n  max_trades_per_day: 10            # 每日最大交易次数\n  avoid_limit_up: true              # 避免涨停板买入\n  avoid_limit_down: true             # 避免跌停板卖出\n  avoid_st_stocks: false            # 排除ST股\n```\n\n### 风控报告\n\n```markdown\n# 🔔 风控日报 · 2026-03-27\n\n## 持仓状况\n| 股票 | 持仓 | 成本 | 现价 | 盈亏 | 仓位 |\n|------|------|------|------|------|------|\n| 600519 | 500 | 1800 | 1850 | +2.78% | 18.5% |\n\n## 风控指标\n- 总仓位: 45.2% ✅ (上限80%)\n- 现金储备: 54.8% ✅ (下限10%)\n- 今日亏损: -0.8% ✅ (上限2%)\n- 总回撤: -3.2% ✅ (上限15%)\n\n## 告警记录\n[无]\n\n## 建议\n✅ 所有指标正常，继续执行策略\n```\n\n## 数据源配置\n\n### tushare pro（推荐）\n\n```bash\n# 安装\npip install tushare\n\n# 配置token（在 tushare.pro 注册获取免费token）\n# 编辑 config\u002Fdata_source.yaml\n```\n\n```yaml\ndata_source:\n  primary: tushare_pro\n  tushare:\n    token: \"${TUSHARE_TOKEN}\"  # 设置环境变量\n    high_priority: true         # 优先使用日线以上数据\n\n  fallback: akshare\n  akshare:\n    free: true\n    delay: 15                  # 数据延迟15分钟\n```\n\n### 数据更新\n\n```bash\n# 更新日线数据\npython scripts\u002Fupdate_data.py --freq daily\n\n# 更新分钟线数据\npython scripts\u002Fupdate_data.py --freq 5min --days 30\n\n# 全量更新（首次运行）\npython scripts\u002Fupdate_data.py --full\n```\n\n## 目录结构\n\n```\nquant-aio\u002F\n├── SKILL.md                      # 本文件\n├── README.md                     # 详细使用说明\n├── scripts\u002F\n│   ├── stock_picker.py          # 选股引擎\n│   ├── backtest.py              # 回测系统\n│   ├── executor_huaxin.py       # 华鑫QMT执行器\n│   ├── executor_wenhua.py       # 文华财经执行器\n│   ├── executor_tbquant.py      # TBQuant3执行器\n│   ├── risk_monitor.py          # 风险监控\n│   ├── update_data.py           # 数据更新\n│   └── report_generator.py      # 报告生成\n├── config\u002F\n│   ├── config.yaml              # 主配置\n│   ├── factors.yaml             # 选股因子配置\n│   ├── risk_rules.yaml          # 风控规则\n│   └── strategies.yaml          # 策略模板\n├── references\u002F\n│   ├── qmt_api.md              # 华鑫QMT API文档\n│   ├── wenhua_api.md           # 文华财经API文档\n│   ├── tbquant_api.md          # TBQuant3 API文档\n│   ├── tushare_guide.md        # tushare使用指南\n│   └── data_sources.md         # 数据源说明\n└── output\u002F\n    ├── stock_picks\u002F            # 选股结果\n    ├── backtest_reports\u002F       # 回测报告\n    └── charts\u002F                 # 图表输出\n```\n\n## 快速开始\n\n```bash\n# 1. 安装依赖\npip install pandas numpy tushare akshare scipy matplotlib\n\n# 2. 配置（复制并编辑）\ncp config\u002Fconfig.yaml.example config\u002Fconfig.yaml\n\n# 3. 设置环境变量\nexport TUSHARE_TOKEN=\"你的token\"\n\n# 4. 运行选股\npython scripts\u002Fstock_picker.py --top 20\n\n# 5. 运行回测\npython scripts\u002Fbacktest.py --strategy momentum\n\n# 6. 启动风控监控\npython scripts\u002Frisk_monitor.py --push telegram\n```\n\n## 注意事项\n\n⚠️ **实盘交易有风险，请务必先在模拟盘测试稳定后再使用实盘。**\n⚠️ **本工具仅供学习和研究使用，盈亏自负。**\n⚠️ **请遵守相关法律法规和券商规定。**\n\n## 更新日志\n\n### v2.1.1 (2026-04-12)\n- **价值投资导向优化**：解决追涨杀跌问题\n- 增加涨幅过滤：近3月涨幅≤50%，近1月涨幅≤25%\n- RPS优化：70-85为最佳区间，排除>90的高位股\n- 估值筛选：PE 5-30，PB\u003C5\n- 排除高位震荡股和涨停股\n- 投资理念：从追涨杀跌转变为价值投资\n- 避免选到招商轮船、中远海能等已涨2-3倍的高位股\n\n### v2.1.0 (2026-04-11)\n- V2.1版本发布\n\n### v2.0.0 (2026-03-27)\n- 正式命名为\"波龙股神量化交易系统\"\n- 开发者：SimonsTang\n- 公司：上海巧未来人工智能科技有限公司\n- 开源代码，MIT协议\n\n### v1.0.0 (2026-03-27)\n- 初始版本\n- 支持选股、回测、风控\n- 支持华鑫QMT、文华财经WH8、TBQuant3实盘接口\n- 支持tushare pro、akshare数据源\n\n---\n\n## 📜 版权声明\n\n**波龙股神量化交易系统 V2.0**\n\n- © 2026 **SimonsTang \u002F 上海巧未来人工智能科技有限公司** 版权所有\n- 开源协议：MIT License\n- 源码开放，欢迎完善，共同进步\n- GitHub：https:\u002F\u002Fgithub.com\u002Fsimonstang\u002Fbolong-quant\n- 联系：learn2study@163.com\n- 网站：https:\u002F\u002Flearn2study.cn\n\n_学来学去学习社 · 让学习更有趣更高效_\n",{},"master","4aa004da461d820f4ea5499e58eb8d196cf99016","community\u002Fclawhub\u002Fb\u002Fbowlong-quant-aio",0,"https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge","https:\u002F\u002Fskill-explorer-rho.vercel.app","https:\u002F\u002Fgithub.com\u002FLord1Egypt","Unbreakable. Unstoppable. Unmatched⚡.\r\n Speaker of machine tongues 🤖  | World-builder of decentralized dreams 🌐 | Defender of the digital realm🛡️.","2026-06-10 08:21:01",{"source":7,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add Lord1Egypt\u002Fawesome-skill-forge --skill bowlong-quant-aio",{"tool":38,"command":39},"bunx","bunx skills add Lord1Egypt\u002Fawesome-skill-forge --skill bowlong-quant-aio",{"tool":41,"command":42},"pnpm","pnpm dlx skills add Lord1Egypt\u002Fawesome-skill-forge --skill bowlong-quant-aio","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fcommunity\u002Fclawhub\u002Fb\u002Fbowlong-quant-aio\u002FSKILL.md",true,[],[47,55,62,69,76,83],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":54},"01M785WKJB99G3STR1NF9NRTJW","youtube-content","YouTube transcripts to summaries, threads, blogs.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fyoutube-content\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":54},"01M785WEFHB0G2S9YA6EPR3H0E","xurl","X\u002FTwitter via xurl CLI: post, search, DM, media, v2 API.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fxurl\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":54},"01M785W98EDN4EFJXJPMQEHCRC","touchdesigner-mcp","Control a running TouchDesigner instance via twozero MCP — create operators, set parameters, wire connections, execute Python, build real-time visuals. 36 native tools.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftouchdesigner-mcp\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":54},"01M785W5S9FP3QBH2V191E025P","test-driven-development","TDD: enforce RED-GREEN-REFACTOR, tests before code.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Ftest-driven-development\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":54},"01M785W2AS08NSSH9YATCV6FJB","teams-meeting-pipeline","Operate the Teams meeting summary pipeline via Hermes CLI — summarize meetings, inspect pipeline status, replay jobs, manage Microsoft Graph subscriptions.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fteams-meeting-pipeline\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":54},"01M785VXKW4T34BTP1SCHW1R7F","systematic-debugging","4-phase root cause debugging: understand bugs before fixing.","https:\u002F\u002Fgithub.com\u002FLord1Egypt\u002Fawesome-skill-forge\u002Fblob\u002Fmaster\u002Fskills\u002Fsystematic-debugging\u002FSKILL.md",[],[]]