From 957ef62407f631320ea4d623b2a59869f7fdf5ae Mon Sep 17 00:00:00 2001 From: jackyu66git Date: Wed, 8 Apr 2026 01:27:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ChanBIZS.py | 4 ++++ TF_DF.py | 2 ++ 2 files changed, 6 insertions(+) diff --git a/ChanBIZS.py b/ChanBIZS.py index 17c6b85..58b1d30 100644 --- a/ChanBIZS.py +++ b/ChanBIZS.py @@ -42,6 +42,10 @@ class ChanBIZS(): def add_bi(self, bi: ChanBI): if bi: self.bi_list.append(bi) + if bi.high > self.gg: + self.gg = bi.high + if bi.low < self.dd: + self.dd = bi.low bi.set_bi_zs(self) self.classify_zs() def set_pre(self, pre): diff --git a/TF_DF.py b/TF_DF.py index 4940274..28e0910 100644 --- a/TF_DF.py +++ b/TF_DF.py @@ -1855,6 +1855,8 @@ class TF_DF(): continue else: is_break = True + else: + break if is_break: break if added_after_leave: