diff --git a/app/static/futures_analysis.html b/app/static/futures_analysis.html index ca7fa41..2c0aaf5 100644 --- a/app/static/futures_analysis.html +++ b/app/static/futures_analysis.html @@ -365,24 +365,6 @@ - - -
-
- - 趋势评分 -
-
-
- - - - - -- -
-
综合评分
-
-
diff --git a/app/static/futures_analysis.js b/app/static/futures_analysis.js index 1515bde..4b9be71 100644 --- a/app/static/futures_analysis.js +++ b/app/static/futures_analysis.js @@ -371,6 +371,21 @@ async function loadAllAIAnalysis() { } }); } + + // 更新趋势评分(使用AI置信度) + if (result.trading_suggestion?.confidence) { + analysisItem.trendScore = result.trading_suggestion.confidence; + } + + // 更新成功率(根据判断方向设置一致概率) + const direction = analysisItem.suggestionType; + if (direction === 'up') { + analysisItem.successRate = 85; // 做多成功率 + } else if (direction === 'down') { + analysisItem.successRate = 82; // 做空成功率 + } else { + analysisItem.successRate = 60; // 观望成功率 + } } } else { console.log(`${item.symbol} 的分析记录不是今天的 (${recordDateStr}),不加载`);