@@ -86,6 +86,8 @@ def f_judge_monto(bd_list: list, pos_neg_cnt: int = 1) -> int:
else:
# 记录一次符号变化
pos_neg_flag += 1
+ if pos_neg_flag > pos_neg_cnt:
+ return False
# 记录满足趋势要求的变量
if pos_neg_flag <= pos_neg_cnt:
return True