修改了一些

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))