基本上完成了高低点的识别

This commit is contained in:
jackyu66git
2025-09-20 02:49:54 +08:00
parent 4766e38125
commit 272e2522ea
4 changed files with 38 additions and 70 deletions
+2 -1
View File
@@ -42,7 +42,7 @@ class ChanKLC():
self.strength = klu.strength
self.last_top_klc = None
self.last_bottom_klc = None
self.bb_out = False
self.bb_out = True
self.macd = 0
self.signal = 0
self.state = Chan_MACD_STATE.UNKNOWN
@@ -69,6 +69,7 @@ class ChanKLC():
if self.pre:
self.pre.cal_bb_out()
def cal_bb_out(self):
return
for klu in self.klus:
if klu.macd_state != Chan_MACD_STATE.UNKNOWN:
self.state = klu.macd_state