策略质量门禁三段自动修复

enforce_strategy_quality() 重写为3轮重试:
- Round 1: ta.full_analysis 技术位
- Round 2: DB行业 + price%推算
- Round 3: 最低可用策略(强制fallback)
3轮全不过 → review_needed

对应模塑空壳策略问题:
之前只修一轮→不过就直接review_needed
现在轮修到通过为止再不通过才review
This commit is contained in:
知微
2026-07-02 14:12:31 +08:00
parent 400e4ee34d
commit 9e5ea52c1e
5 changed files with 181 additions and 149 deletions
+38 -38
View File
@@ -5,9 +5,9 @@
"name": "中际旭创",
"shares": 100,
"cost": 1316.53,
"price": 1140.85,
"price": 1153.0,
"market_value": 113604.0,
"change_pct": -6.73,
"change_pct": -5.74,
"currency": "CNY",
"position_pct": 15.27,
"_currency": "CNY"
@@ -17,9 +17,9 @@
"name": "长飞光纤光缆",
"shares": 500,
"cost": 263.72,
"price": 174.09,
"price": 174.79,
"market_value": 89300.0,
"change_pct": -21.38,
"change_pct": -21.06,
"currency": "CNY",
"position_pct": 13.47,
"_currency": "CNY"
@@ -29,9 +29,9 @@
"name": "丘钛科技",
"shares": 11000,
"cost": 13.47,
"price": 5.96,
"price": 5.95,
"market_value": 65890.0,
"change_pct": 0.146,
"change_pct": 0.0,
"currency": "CNY",
"position_pct": 7.97,
"_currency": "CNY"
@@ -41,9 +41,9 @@
"name": "紫金矿业",
"shares": 2400,
"cost": 39.89,
"price": 26.39,
"price": 26.4,
"market_value": 63048.0,
"change_pct": 5.1,
"change_pct": 5.14,
"currency": "CNY",
"position_pct": 7.34,
"_currency": "CNY"
@@ -53,9 +53,9 @@
"name": "海博思创",
"shares": 200,
"cost": 266.95,
"price": 257.27,
"price": 258.8,
"market_value": 51776.0,
"change_pct": -2.14,
"change_pct": -1.56,
"currency": "CNY",
"position_pct": 6.31,
"_currency": "CNY"
@@ -65,9 +65,9 @@
"name": "中芯国际",
"shares": 300,
"cost": 126.07,
"price": 145.7,
"price": 147.2,
"market_value": 44112.0,
"change_pct": -5.68,
"change_pct": -4.71,
"currency": "CNY",
"position_pct": 5.44,
"_currency": "CNY"
@@ -77,9 +77,9 @@
"name": "建滔积层板",
"shares": 500,
"cost": 88.23,
"price": 71.79,
"price": 72.35,
"market_value": 36415.0,
"change_pct": -16.49,
"change_pct": -15.83,
"currency": "CNY",
"position_pct": 5.28,
"_currency": "CNY"
@@ -89,9 +89,9 @@
"name": "华恒生物",
"shares": 2800,
"cost": 21.51,
"price": 17.15,
"price": 17.24,
"market_value": 48244.0,
"change_pct": 4.76,
"change_pct": 5.31,
"currency": "CNY",
"position_pct": 5.25,
"_currency": "CNY"
@@ -101,9 +101,9 @@
"name": "宁德时代",
"shares": 100,
"cost": 401.78,
"price": 385.91,
"price": 385.54,
"market_value": 38495.0,
"change_pct": 0.54,
"change_pct": 0.44,
"currency": "CNY",
"position_pct": 4.64,
"_currency": "CNY"
@@ -113,9 +113,9 @@
"name": "比亚迪股份",
"shares": 600,
"cost": 104.87,
"price": 67.8,
"price": 67.97,
"market_value": 41070.0,
"change_pct": 7.94,
"change_pct": 8.21,
"currency": "CNY",
"position_pct": 4.62,
"_currency": "CNY"
@@ -125,9 +125,9 @@
"name": "万科企业",
"shares": 19700,
"cost": 4.67,
"price": 1.93,
"price": 1.92,
"market_value": 38021.0,
"change_pct": 5.189,
"change_pct": 4.72,
"currency": "CNY",
"position_pct": 4.6,
"_currency": "CNY"
@@ -137,9 +137,9 @@
"name": "腾讯",
"shares": 100,
"cost": null,
"price": 377.67,
"price": 377.49,
"market_value": 37784.0,
"change_pct": 1.35,
"change_pct": 1.3,
"currency": "CNY",
"position_pct": null,
"_currency": "CNY"
@@ -149,9 +149,9 @@
"name": "中芯国际",
"shares": 500,
"cost": 75.94,
"price": 68.32,
"price": 69.14,
"market_value": 34635.0,
"change_pct": -11.86,
"change_pct": -10.79,
"currency": "CNY",
"position_pct": 4.2,
"_currency": "CNY"
@@ -161,9 +161,9 @@
"name": "长芯博创",
"shares": 100,
"cost": 231.46,
"price": 224.72,
"price": 226.0,
"market_value": 22592.0,
"change_pct": -11.53,
"change_pct": -11.02,
"currency": "CNY",
"position_pct": 3.2,
"_currency": "CNY"
@@ -173,9 +173,9 @@
"name": "黄金ETF华安",
"shares": 2400,
"cost": 12.19,
"price": 8.47,
"price": 8.46,
"market_value": 20280.0,
"change_pct": 2.39,
"change_pct": 2.32,
"currency": "CNY",
"position_pct": 2.45,
"_currency": "CNY"
@@ -185,9 +185,9 @@
"name": "中科电气",
"shares": 1400,
"cost": 22.29,
"price": 14.28,
"price": 14.32,
"market_value": 20062.0,
"change_pct": -1.11,
"change_pct": -0.83,
"currency": "CNY",
"position_pct": 2.42,
"_currency": "CNY"
@@ -221,20 +221,20 @@
"name": "中国神华",
"shares": 500,
"cost": 45.89,
"price": 34.18,
"price": 34.16,
"market_value": 17115.0,
"change_pct": 1.25,
"change_pct": 1.19,
"currency": "CNY",
"position_pct": 2.14,
"_currency": "CNY"
}
],
"total_assets": 898730.0,
"total_mv": 818254.0,
"total_assets": 901907.0,
"total_mv": 821431.0,
"stock_value": null,
"cash": 80476.0,
"frozen_cash": 0.0,
"position_pct": 91.05,
"position_pct": 91.08,
"currency": "CNY",
"updated_at": "2026-07-02 14:04"
"updated_at": "2026-07-02 14:12"
}