修改了一些

This commit is contained in:
Porter
2025-06-09 09:47:43 +08:00
parent 9ace03b29b
commit fca57e23e8
3 changed files with 8 additions and 3889 deletions
+4 -4
View File
@@ -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))
+4 -4
View File
@@ -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分型标记配置
File diff suppressed because it is too large Load Diff