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: