修改了一些
This commit is contained in:
+4
-4
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user