找到klc生成bug

This commit is contained in:
jackyu66git
2026-03-13 01:21:33 +08:00
parent 72196329d1
commit aeced3c618
3 changed files with 14 additions and 1 deletions
+3
View File
@@ -326,6 +326,7 @@ class ChanKLC():
self.end_klu = klu
self.end_time = klu.time
self.close = klu.close
for klu in self.klu_list:
if klu.exception:
self.exception = True
@@ -348,6 +349,8 @@ class ChanKLC():
self.close = self.low
if self.close > self.high:
self.close = self.high
#print(self.end_time, self.open, self.close, self.high, self.low)
#print(klu.time, klu.open, klu.close, klu.high, klu.low)
def cal_fx(self):
if self.klc_fx_type == Chan_KLC_FX.TOP1 or self.klc_fx_type == Chan_KLC_FX.TOP2:
#print(self.end_time, self.fx, self.macd, self.macdhist, len(self.klu_list))