添加新的判断依据

This commit is contained in:
jackyu66git
2025-11-16 20:58:03 +08:00
parent 03c5148c29
commit d61cbbec21
8 changed files with 24 additions and 76 deletions
+2 -1
View File
@@ -77,6 +77,7 @@ class ChanKLC():
self.continue_div = klu.continue_div
if klu.macd_state != Chan_MACD_STATE.UNKNOWN:
self.state = klu.macd_state
klu.set_klc(self)
self.klc_dir = Chan_KLINE_DIR.UP if self.close > self.open else Chan_KLINE_DIR.DOWN
self.cal_indicators()
def cal_fx(self):
@@ -175,7 +176,7 @@ class ChanKLC():
return False
else:
# high小于,low大于,右包含
if self.low >= klu.low:
if self.low >= klu.low-10:
self.add_klu(klu=klu)
# gn>gn-1
if self.dir == Chan_KLINE_DIR.UP: