自成长体系补齐:分支扫描+每日剪枝+决策树全覆盖+分支输出
核心改动: 1. 创建 branch_scanner.py — 每15分钟扫价格→评估分支适用性→记录trigger_count cron: 分支自成长-盘中 (15,30,45,00 9-15) 2. 创建 prune_branches.py — 每日21:00剪枝(触发>=5次且成功率<50% → 淘汰) cron: 分支剪枝-每日 (0 21 * * 1-5) — 之前是每周,频率太低 3. strategy_tree.py: _check_branch_condition 新增 price_lower 支持 buy_dip 分支同时检查上下界(price<=entry_high AND price_lower>=entry_low) 4. 43只股票全部补全决策树(之前只有6只) init_default_branches 生成每只6条分支:止损/回调买入/突破追涨/减仓/止盈/持有 5. stale_push_wlin 分支输出已存在(302-315行加载策略树,437-455行评估+追加) 下一期报告即显示:【弱势震荡→buy】价格回调到支撑区,弱势市场低吸 新增: 南亚新材(688519) 全面分析+策略+自选 买入区335~350 止损320 止盈400 RR=1.7 6月从285拉至409(+43%)后急跌至331(-19%),今日反弹缩量。高PE(228)炒作品种,等回调确认支撑
This commit is contained in:
@@ -0,0 +1,272 @@
|
||||
{
|
||||
"holdings": [
|
||||
{
|
||||
"code": "01478",
|
||||
"name": "丘钛科技",
|
||||
"shares": 11000,
|
||||
"cost": 11.96,
|
||||
"price": 8.07,
|
||||
"change_pct": -3.7,
|
||||
"position_pct": 7.66,
|
||||
"is_active": 1,
|
||||
"avg_price": 13.8313
|
||||
},
|
||||
{
|
||||
"code": "001309",
|
||||
"name": "德明利",
|
||||
"shares": 100,
|
||||
"cost": 737.0374,
|
||||
"price": 763.86,
|
||||
"change_pct": 3.63,
|
||||
"position_pct": 7.5,
|
||||
"is_active": 1,
|
||||
"avg_price": 737.0374
|
||||
},
|
||||
{
|
||||
"code": "600739",
|
||||
"name": "辽宁成大",
|
||||
"shares": 6600,
|
||||
"cost": 12.2862,
|
||||
"price": 10.77,
|
||||
"change_pct": 0.28,
|
||||
"position_pct": 7.03,
|
||||
"is_active": 1,
|
||||
"avg_price": 12.2862
|
||||
},
|
||||
{
|
||||
"code": "601899",
|
||||
"name": "紫金矿业",
|
||||
"shares": 2400,
|
||||
"cost": 40.2685,
|
||||
"price": 28.01,
|
||||
"change_pct": -7.98,
|
||||
"position_pct": 6.7,
|
||||
"is_active": 1,
|
||||
"avg_price": 40.2685
|
||||
},
|
||||
{
|
||||
"code": "09988",
|
||||
"name": "阿里巴巴-W",
|
||||
"shares": 700,
|
||||
"cost": 109.26,
|
||||
"price": 99.55,
|
||||
"change_pct": -3.35,
|
||||
"position_pct": 5.95,
|
||||
"is_active": 1,
|
||||
"avg_price": 126.3558
|
||||
},
|
||||
{
|
||||
"code": "688981",
|
||||
"name": "中芯国际",
|
||||
"shares": 300,
|
||||
"cost": 126.0681,
|
||||
"price": 142.16,
|
||||
"change_pct": -2.36,
|
||||
"position_pct": 4.31,
|
||||
"is_active": 1,
|
||||
"avg_price": 126.0681
|
||||
},
|
||||
{
|
||||
"code": "603259",
|
||||
"name": "药明康德",
|
||||
"shares": 400,
|
||||
"cost": 96.201,
|
||||
"price": 106.66,
|
||||
"change_pct": -0.16,
|
||||
"position_pct": 4.23,
|
||||
"is_active": 1,
|
||||
"avg_price": 96.201
|
||||
},
|
||||
{
|
||||
"code": "02202",
|
||||
"name": "万科企业",
|
||||
"shares": 19700,
|
||||
"cost": 4.05,
|
||||
"price": 2.4,
|
||||
"change_pct": -3.24,
|
||||
"position_pct": 4.05,
|
||||
"is_active": 1,
|
||||
"avg_price": 4.6836
|
||||
},
|
||||
{
|
||||
"code": "02388",
|
||||
"name": "中银香港",
|
||||
"shares": 1000,
|
||||
"cost": 37.93,
|
||||
"price": 47.32,
|
||||
"change_pct": -0.59,
|
||||
"position_pct": 4.02,
|
||||
"is_active": 1,
|
||||
"avg_price": 43.8601
|
||||
},
|
||||
{
|
||||
"code": "300750",
|
||||
"name": "宁德时代",
|
||||
"shares": 100,
|
||||
"cost": 401.7803,
|
||||
"price": 396.98,
|
||||
"change_pct": -2.93,
|
||||
"position_pct": 3.93,
|
||||
"is_active": 1,
|
||||
"avg_price": 401.7803
|
||||
},
|
||||
{
|
||||
"code": "01211",
|
||||
"name": "比亚迪股份",
|
||||
"shares": 600,
|
||||
"cost": 90.99,
|
||||
"price": 76.4,
|
||||
"change_pct": -2.62,
|
||||
"position_pct": 3.9,
|
||||
"is_active": 1,
|
||||
"avg_price": 105.2242
|
||||
},
|
||||
{
|
||||
"code": "01888",
|
||||
"name": "建滔积层板",
|
||||
"shares": 500,
|
||||
"cost": 76.55,
|
||||
"price": 84.4,
|
||||
"change_pct": -8.21,
|
||||
"position_pct": 3.75,
|
||||
"is_active": 1,
|
||||
"avg_price": 88.5286
|
||||
},
|
||||
{
|
||||
"code": "00700",
|
||||
"name": "腾讯控股",
|
||||
"shares": 100,
|
||||
"cost": 384.46,
|
||||
"price": 417.6,
|
||||
"change_pct": -3.56,
|
||||
"position_pct": 3.59,
|
||||
"is_active": 1,
|
||||
"avg_price": 444.6211
|
||||
},
|
||||
{
|
||||
"code": "00981",
|
||||
"name": "中芯国际",
|
||||
"shares": 500,
|
||||
"cost": 65.89,
|
||||
"price": 80.05,
|
||||
"change_pct": 1.46,
|
||||
"position_pct": 3.54,
|
||||
"is_active": 1,
|
||||
"avg_price": 76.1956
|
||||
},
|
||||
{
|
||||
"code": "09868",
|
||||
"name": "小鹏集团-W",
|
||||
"shares": 700,
|
||||
"cost": 44.49,
|
||||
"price": 49.78,
|
||||
"change_pct": -3.43,
|
||||
"position_pct": 3.0,
|
||||
"is_active": 1,
|
||||
"avg_price": 51.4476
|
||||
},
|
||||
{
|
||||
"code": "300548",
|
||||
"name": "长芯博创",
|
||||
"shares": 100,
|
||||
"cost": 231.46,
|
||||
"price": 290.58,
|
||||
"change_pct": -2.52,
|
||||
"position_pct": 2.95,
|
||||
"is_active": 1,
|
||||
"avg_price": 231.46
|
||||
},
|
||||
{
|
||||
"code": "600036",
|
||||
"name": "招商银行",
|
||||
"shares": 800,
|
||||
"cost": 38.1582,
|
||||
"price": 37.76,
|
||||
"change_pct": 0.29,
|
||||
"position_pct": 2.95,
|
||||
"is_active": 1,
|
||||
"avg_price": 38.1582
|
||||
},
|
||||
{
|
||||
"code": "02318",
|
||||
"name": "中国平安",
|
||||
"shares": 500,
|
||||
"cost": 47.48,
|
||||
"price": 54.0,
|
||||
"change_pct": -1.73,
|
||||
"position_pct": 2.28,
|
||||
"is_active": 1,
|
||||
"avg_price": 54.9086
|
||||
},
|
||||
{
|
||||
"code": "300035",
|
||||
"name": "中科电气",
|
||||
"shares": 1400,
|
||||
"cost": 22.2914,
|
||||
"price": 16.47,
|
||||
"change_pct": -3.97,
|
||||
"position_pct": 2.28,
|
||||
"is_active": 1,
|
||||
"avg_price": 22.2914
|
||||
},
|
||||
{
|
||||
"code": "000700",
|
||||
"name": "模塑科技",
|
||||
"shares": 1400,
|
||||
"cost": 14.8336,
|
||||
"price": 15.41,
|
||||
"change_pct": 1.52,
|
||||
"position_pct": 2.12,
|
||||
"is_active": 1,
|
||||
"avg_price": 14.8336
|
||||
},
|
||||
{
|
||||
"code": "518880",
|
||||
"name": "黄金ETF华安",
|
||||
"shares": 2400,
|
||||
"cost": 12.1915,
|
||||
"price": 8.57,
|
||||
"change_pct": -1.73,
|
||||
"position_pct": 2.02,
|
||||
"is_active": 1,
|
||||
"avg_price": 12.1915
|
||||
},
|
||||
{
|
||||
"code": "01088",
|
||||
"name": "中国神华",
|
||||
"shares": 500,
|
||||
"cost": 39.82,
|
||||
"price": 42.62,
|
||||
"change_pct": 0.09,
|
||||
"position_pct": 1.81,
|
||||
"is_active": 1,
|
||||
"avg_price": 46.0485
|
||||
},
|
||||
{
|
||||
"code": "600563",
|
||||
"name": "法拉电子",
|
||||
"shares": 100,
|
||||
"cost": 146.95,
|
||||
"price": 163.8,
|
||||
"change_pct": -5.29,
|
||||
"position_pct": 1.63,
|
||||
"is_active": 1,
|
||||
"avg_price": 146.95
|
||||
},
|
||||
{
|
||||
"code": "300690",
|
||||
"name": "双一科技",
|
||||
"shares": 400,
|
||||
"cost": 27.178,
|
||||
"price": 23.75,
|
||||
"change_pct": -1.7,
|
||||
"position_pct": 0.94,
|
||||
"is_active": 1,
|
||||
"avg_price": 27.178
|
||||
}
|
||||
],
|
||||
"cash": 80476,
|
||||
"total_assets": 1023059.24,
|
||||
"position_pct": 92.13,
|
||||
"last_updated": "2026-06-23 11:00"
|
||||
}
|
||||
Reference in New Issue
Block a user