添加识别klc_state,macd参数调整

macd调整为26,52
顶底之间间隔7个klc
This commit is contained in:
jackyu66git
2026-04-01 11:11:51 +08:00
parent b6b6cb94c0
commit 6538982d24
4 changed files with 30 additions and 39 deletions
+2 -2
View File
@@ -358,7 +358,7 @@ class ChanKLC():
self.fx_confirmed = True
self.fx_box = Chan_FX_Box.Chan_FX_Box(start_time, end_time, high, low)
def check_fx_confirmed(self, last_top, last_bottom):
if last_top and last_bottom:
if last_top and last_bottom and False:
if last_top.index > last_bottom.index:
if self.in_fx == False and last_top.fx_confirmed == False:
pre = last_top.pre
@@ -401,7 +401,7 @@ class ChanKLC():
self.klc_state = Chan_KLC_STATE.S10
elif self.pre and self.pre.fx == Chan_FX_TYPE.BOTTOM:
self.klc_state = Chan_KLC_STATE.S_10
print(self.end_time, self.klc_state)
#print(self.end_time, self.klc_state)
def set_end_klu(self, klu):
self.end_klu = klu
self.end_time = klu.time