From fca57e23e8c3dca114a0aefc62d3bb5901e8a368 Mon Sep 17 00:00:00 2001 From: Porter Date: Mon, 9 Jun 2025 09:47:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E4=B8=80=E4=BA=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ChanKLC.py | 8 +- web/templates/index.html | 8 +- web/templates/index.html.bak | 3881 ---------------------------------- 3 files changed, 8 insertions(+), 3889 deletions(-) delete mode 100644 web/templates/index.html.bak diff --git a/ChanKLC.py b/ChanKLC.py index beeaaa2..8b0aed8 100644 --- a/ChanKLC.py +++ b/ChanKLC.py @@ -1391,8 +1391,8 @@ class ChanKLC(): # 高点突出程度 high_diff1 = (self.high - self.pre.high) / self.high if self.high > 0 else 0 high_diff2 = (self.high - self.next.high) / self.high if self.high > 0 else 0 - min_diff = min(high_diff1, high_diff2) - + min_diff = 33*min(high_diff1, high_diff2) + print(min_diff) if min_diff > 0.03: # 非常突出 score += 0.5 elif min_diff > 0.01: # 比较突出 @@ -1418,9 +1418,9 @@ class ChanKLC(): if avg_volume > 0: volume_ratio = self.volume / avg_volume if volume_ratio > 1.5: - score += 0.3 + score += 0.5 elif volume_ratio < 0.7: - score -= 0.2 + score -= 0.3 return min(1, max(-1, score)) diff --git a/web/templates/index.html b/web/templates/index.html index 69fe08a..acfb04f 100644 --- a/web/templates/index.html +++ b/web/templates/index.html @@ -3314,8 +3314,8 @@ // 构建显示文本,包含分型类型和强度信息 let displayText = `${fx.fx_strength.toFixed(1)}`; - if (fx.fx_strength < 1.3) { // 降低阈值,让更多分型显示 - displayText = fx.fx_strength >= 0.8 ? '•' : '' // 0.8以上显示点,0.8以下不显示文本 + if (fx.fx_strength < 1.8) { // 降低阈值,让更多分型显示 + displayText = fx.fx_strength >= 1.5 ? '•' : '' // 0.8以上显示点,0.8以下不显示文本 } // 添加标记配置 @@ -3455,8 +3455,8 @@ let strengthColor = fx.is_bottom ? '#9A8C98' : '#F2CC8F'; // 底分型用灰紫色,顶分型用浅黄色 let displayText = `${fx.fx_strength.toFixed(1)}`; // 构建小周期分型显示文本 - if (fx.fx_strength < 1.3){ // 调整小周期阈值 - displayText = fx.fx_strength >= 0.6 ? '•' : '' // 0.6以上显示点 + if (fx.fx_strength < 1.8){ // 调整小周期阈值 + displayText = fx.fx_strength >= 1.5 ? '•' : '' // 0.6以上显示点 } // 小周期KLU分型标记配置 diff --git a/web/templates/index.html.bak b/web/templates/index.html.bak deleted file mode 100644 index 39d66da..0000000 --- a/web/templates/index.html.bak +++ /dev/null @@ -1,3881 +0,0 @@ - - - - 缠论分析系统 - - - - - - - - - - - - - - - -
-
-

缠论分析系统

-
- -
-
-
- - -
-
- - -
-
- - -
-
- - -
-
- - -
-
- -
-
- -
-
-
- -
- - -
- - -
- - -
-
- - - -
- -
- - -
- -
- - -
-
- - -
- - -
- - -
- - -
-
- -
- - -
-
- - -
-
- - -
-
- - -
-
-
- -
- - -
-
- - -
-
- - -
-
- - -
-
-
-
-
- - - 仅影响笔、线段和中枢分析 -
- -
- - -
- - -
- - -
-
-
-
- - - -
-
-
- -
- - -
-
-
- - - - - - - - - - - - -
时间开盘价最高价最低价收盘价成交量
-
-
-
-
- - - - - - - - - - - - -
起始时间结束时间起始价格结束价格方向MACD背离值
-
-
-
-
- - - - - - - - - - - -
起始时间结束时间起始价格结束价格方向
-
-
-
-
-
已完成中枢
- - - - - - - - - - -
起始时间结束时间中枢上沿(ZG)中枢下沿(ZD)
- -
未完成中枢
- - - - - - - - - -
起始时间中枢上沿(ZG)中枢下沿(ZD)
-
-
-
-
- - - - - - - - - - - -
时间收盘价MACD信号线直方图
-
-
- -
-
-
- - - - - \ No newline at end of file