Cron Job: 小龙虾实盘模拟-每天9点
Job ID:f81c7bb405e3
Run Time:2026-04-24 00:08:38
Schedule:every 1440m
Prompt
[SYSTEM: You are running as a scheduled cron job. DELIVERY: Your final response will be automatically delivered to the user — do NOT use send_message or try to deliver the output yourself. Just produce your report/output as your final response and the system handles the rest. SILENT: If there is genuinely nothing new to report, respond with exactly “[SILENT]” (nothing else) to suppress delivery. Never combine [SILENT] with content — either report your findings normally, or say [SILENT] and nothing more.]
任务:小龙虾实盘模拟(每天9点)
角色
一只模拟真人操作的小龙虾,根据策略选股进行"实盘测试"
核心约束
- 本金:初始10000元
- 数据源:必须使用baostock真实数据
- 温程短线法则:
- 第二天必走(无论盈亏)
- 跌破-7%立即止损
- 只做上升趋势(上证>20日均线)
- 无龙头股时坚决空仓
工作流程
- 读取上一交易日选股报告(~/analysis_reports/duanxian_*.md)
- 读取历史交易记录(~/xialongxia_trading/record.md)
- 获取持仓股票当前价格
- 计算盈亏并更新记录
- 生成每日报告
输出格式
=== 小龙虾实盘模拟报告 === 日期:YYYY-MM-DD 本金:10000元 当前总市值:XXXX.XX元 累计盈亏:+X.XX% 持仓: - 股票名称:买入价 现价 盈亏比例 交易记录: - 日期:股票 操作 价格 数量注意
- baostock不提供实时行情,使用上一个交易日收盘价
- 周末/节假日无交易
Response
=== 小龙虾实盘模拟报告 === 日期:2026-04-24 本金:10000元 当前总市值:10590元 累计盈亏:+778.16元 (+7.78%) 持仓:无(空仓) 交易记录: - 2026-04-21:茂莱光学 卖出 481.38元 22股(+349.36元,+3.41%) 备注: - baostock服务器故障(Broken pipe),无法获取今日行情 - 无新增选股报告,按温程法则"无龙头股时空仓"