This commit is contained in:
jackyu66git
2025-07-09 01:44:05 +08:00
parent d60805487d
commit 5d58de1b6b
6 changed files with 37 additions and 13 deletions
+8
View File
@@ -26,6 +26,11 @@ class ChanKLU:
self.bbp365 = 0
self.bb120 = 0
self.bb365 = 0
self.bbp302 = 0
self.bbup302 = 0
self.bblow302 = 0
self.bbup30 = 0
self.bblow30 = 0
# === 新增:K线类型 ===
self.kline_type = None # K线类型:大阳线、大阴线、小阳线、小阴线
@@ -585,6 +590,9 @@ class ChanKLU:
self.bbp30 = float(item['bbp30']) if 'bbp30' in item and item['bbp30'] else 0
self.bbup30 = float(item['bbup30']) if 'bbup30' in item and item['bbup30'] else 0
self.bblow30 = float(item['bblow30']) if 'bblow30' in item and item['bblow30'] else 0
self.bbp302 = float(item['bbp302']) if 'bbp302' in item and item['bbp302'] else 0
self.bbup302 = float(item['bbup302']) if 'bbup302' in item and item['bbup302'] else 0
self.bblow302 = float(item['bblow302']) if 'bblow302' in item and item['bblow302'] else 0
self.bbup120 = float(item['bbup120']) if 'bbup120' in item and item['bbup120'] else 0
self.bblow120 = float(item['bblow120']) if 'bblow120' in item and item['bblow120'] else 0
self.bbup365 = float(item['bbup365']) if 'bbup365' in item and item['bbup365'] else 0