添加布林带显示
This commit is contained in:
+8
-2
@@ -22,7 +22,10 @@ class ChanKLU:
|
||||
self.ma250 = 0
|
||||
self.rsi = 0
|
||||
self.volume_ratio = 0
|
||||
|
||||
self.bbp120 = 0
|
||||
self.bbp365 = 0
|
||||
self.bb120 = 0
|
||||
self.bb365 = 0
|
||||
# === 新增:K线类型 ===
|
||||
self.kline_type = None # K线类型:大阳线、大阴线、小阳线、小阴线
|
||||
|
||||
@@ -575,7 +578,10 @@ class ChanKLU:
|
||||
|
||||
self.rsi = float(item['rsi']) if 'rsi' in item and item['rsi'] else 0
|
||||
self.volume_ratio = float(item['volume_ratio']) if 'volume_ratio' in item and item['volume_ratio'] else 0
|
||||
|
||||
self.bbp120 = float(item['bbp120']) if 'bbp120' in item and item['bbp120'] else 0
|
||||
self.bbp365 = float(item['bbp365']) if 'bbp365' in item and item['bbp365'] else 0
|
||||
self.bb120 = float(item['bb120']) if 'bb120' in item and item['bb120'] else 0
|
||||
self.bb365 = float(item['bb365']) if 'bb365' in item and item['bb365'] else 0
|
||||
# 设置指标后更新实时分析
|
||||
self.update_realtime_analysis()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user