添加klu的3种形态识别

This commit is contained in:
jackyu66git
2025-11-01 02:50:44 +08:00
parent 8bb3798a7c
commit 8e21ecb057
8 changed files with 287 additions and 117 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ class ChanBI():
def cal_macdhist(self):
self.macd_hist = 0
for klc in self.klc_list:
for klu in klc.klus:
for klu in klc.klu_list:
if self.dir == Chan_BI_DIR.UP and klu.macdhist > 0:
self.macd_hist += klu.macdhist
if self.dir == Chan_BI_DIR.DOWN and klu.macdhist < 0: