添加新的检测

This commit is contained in:
jackyu66git
2025-09-16 03:05:42 +08:00
parent 0b9f63409c
commit 3594d59a92
7 changed files with 116 additions and 56 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 = True
histset.peak_klu.separate_div = self.div_count
elif histset.peak_klu.macd < 0 and histset.histset_dir == Chan_MACDHISTSET_DIR.UNDER:
histset.peak_klu.separate_div = True
histset.peak_klu.separate_div = self.div_count
else:
if histset.peak_klu:
self.peak_klu = histset.peak_klu