添加新的判断依据

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 -2
View File
@@ -61,9 +61,9 @@ class ChanMACDUnitTF():
self.div_peak_list.append(histset.peak_klu)
#print("Unittf: ", self.start_klu.time)
if histset.peak_klu.macd > 0 and histset.histset_dir == Chan_MACDHISTSET_DIR.ABOVE:
histset.peak_klu.separate_div = self.div_count
histset.peak_klu.set_separate_div(self.div_count)
elif histset.peak_klu.macd < 0 and histset.histset_dir == Chan_MACDHISTSET_DIR.UNDER:
histset.peak_klu.separate_div = self.div_count
histset.peak_klu.set_separate_div(self.div_count)
else:
if histset.peak_klu:
self.peak_klu = histset.peak_klu