质量门禁自动修复 — CRITICAL失败不再退回, 调技术分析补全

enforce_strategy_quality() 新增自动修复层:
GATE_LOSS_EXISTS → 调 ta.full_analysis() 算弱支撑
GATE_PROFIT_EXISTS → 调 ta.full_analysis() 算阻力位
GATE_ENTRY_RANGE → 从止损/止盈或现价推算
GATE_9D_ANALYSIS → 从 DB 补行业、自动填因子
修复后重检质量, 通过则正常写入, 不进 review_needed

Dad要求: 不是挡, 是打回重评直到有正确结果
This commit is contained in:
知微
2026-07-02 13:57:50 +08:00
parent c36479f481
commit 6f8644b327
5 changed files with 157 additions and 43 deletions
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+35 -35
View File
@@ -5,9 +5,9 @@
"name": "中际旭创",
"shares": 100,
"cost": 1316.53,
"price": 1136.12,
"price": 1141.0,
"market_value": 113604.0,
"change_pct": -7.12,
"change_pct": -6.72,
"currency": "CNY",
"position_pct": 15.27,
"_currency": "CNY"
@@ -17,9 +17,9 @@
"name": "长飞光纤光缆",
"shares": 500,
"cost": 263.72,
"price": 178.6,
"price": 178.08,
"market_value": 89300.0,
"change_pct": -19.342,
"change_pct": -19.577,
"currency": "CNY",
"position_pct": 13.47,
"_currency": "CNY"
@@ -29,9 +29,9 @@
"name": "丘钛科技",
"shares": 11000,
"cost": 13.47,
"price": 5.98,
"price": 6.02,
"market_value": 65890.0,
"change_pct": 0.583,
"change_pct": 0.0,
"currency": "CNY",
"position_pct": 7.97,
"_currency": "CNY"
@@ -41,9 +41,9 @@
"name": "紫金矿业",
"shares": 2400,
"cost": 39.89,
"price": 26.34,
"price": 26.35,
"market_value": 63048.0,
"change_pct": 4.9,
"change_pct": 4.94,
"currency": "CNY",
"position_pct": 7.34,
"_currency": "CNY"
@@ -53,9 +53,9 @@
"name": "海博思创",
"shares": 200,
"cost": 266.95,
"price": 259.0,
"price": 257.9,
"market_value": 51776.0,
"change_pct": -1.48,
"change_pct": -1.9,
"currency": "CNY",
"position_pct": 6.31,
"_currency": "CNY"
@@ -65,9 +65,9 @@
"name": "中芯国际",
"shares": 300,
"cost": 126.07,
"price": 146.33,
"price": 146.57,
"market_value": 44112.0,
"change_pct": -5.28,
"change_pct": -5.12,
"currency": "CNY",
"position_pct": 5.44,
"_currency": "CNY"
@@ -77,9 +77,9 @@
"name": "建滔积层板",
"shares": 500,
"cost": 88.23,
"price": 73.52,
"price": 73.35,
"market_value": 36415.0,
"change_pct": -14.473,
"change_pct": -14.675,
"currency": "CNY",
"position_pct": 5.28,
"_currency": "CNY"
@@ -89,9 +89,9 @@
"name": "华恒生物",
"shares": 2800,
"cost": 21.51,
"price": 17.18,
"price": 17.21,
"market_value": 48244.0,
"change_pct": 4.95,
"change_pct": 5.13,
"currency": "CNY",
"position_pct": 5.25,
"_currency": "CNY"
@@ -101,9 +101,9 @@
"name": "宁德时代",
"shares": 100,
"cost": 401.78,
"price": 386.01,
"price": 386.64,
"market_value": 38495.0,
"change_pct": 0.57,
"change_pct": 0.73,
"currency": "CNY",
"position_pct": 4.64,
"_currency": "CNY"
@@ -113,9 +113,9 @@
"name": "比亚迪股份",
"shares": 600,
"cost": 104.87,
"price": 68.36,
"price": 68.19,
"market_value": 41070.0,
"change_pct": 8.834,
"change_pct": 8.558,
"currency": "CNY",
"position_pct": 4.62,
"_currency": "CNY"
@@ -127,7 +127,7 @@
"cost": 4.67,
"price": 1.93,
"market_value": 38021.0,
"change_pct": 5.19,
"change_pct": 5.189,
"currency": "CNY",
"position_pct": 4.6,
"_currency": "CNY"
@@ -137,9 +137,9 @@
"name": "腾讯",
"shares": 100,
"cost": null,
"price": 378.36,
"price": 378.01,
"market_value": 37784.0,
"change_pct": 1.536,
"change_pct": 1.443,
"currency": "CNY",
"position_pct": null,
"_currency": "CNY"
@@ -149,9 +149,9 @@
"name": "中芯国际",
"shares": 500,
"cost": 75.94,
"price": 69.62,
"price": 69.06,
"market_value": 34635.0,
"change_pct": -10.179,
"change_pct": -10.906,
"currency": "CNY",
"position_pct": 4.2,
"_currency": "CNY"
@@ -161,9 +161,9 @@
"name": "长芯博创",
"shares": 100,
"cost": 231.46,
"price": 226.07,
"price": 227.05,
"market_value": 22592.0,
"change_pct": -11.0,
"change_pct": -10.61,
"currency": "CNY",
"position_pct": 3.2,
"_currency": "CNY"
@@ -175,7 +175,7 @@
"cost": 12.19,
"price": 8.45,
"market_value": 20280.0,
"change_pct": 2.14,
"change_pct": 2.18,
"currency": "CNY",
"position_pct": 2.45,
"_currency": "CNY"
@@ -185,9 +185,9 @@
"name": "中科电气",
"shares": 1400,
"cost": 22.29,
"price": 14.31,
"price": 14.32,
"market_value": 20062.0,
"change_pct": -0.9,
"change_pct": -0.83,
"currency": "CNY",
"position_pct": 2.42,
"_currency": "CNY"
@@ -221,20 +221,20 @@
"name": "中国神华",
"shares": 500,
"cost": 45.89,
"price": 34.13,
"price": 34.14,
"market_value": 17115.0,
"change_pct": 1.092,
"change_pct": 1.143,
"currency": "CNY",
"position_pct": 2.14,
"_currency": "CNY"
}
],
"total_assets": 903265.0,
"total_mv": 822789.0,
"total_assets": 903571.0,
"total_mv": 823095.0,
"stock_value": null,
"cash": 80476.0,
"frozen_cash": 0.0,
"position_pct": 91.09,
"currency": "CNY",
"updated_at": "2026-07-02 13:50"
"updated_at": "2026-07-02 13:56"
}