尝试更多入场-1

This commit is contained in:
zhangkun9038@dingtalk.com 2025-11-25 23:50:47 +08:00
parent b54acc46e7
commit e19dbd27a7

View File

@ -23,11 +23,11 @@ class SmartBBGrid(IStrategy):
dataframe['plus_di'] = ta.PLUS_DI(dataframe, timeperiod=14)
dataframe['minus_di'] = ta.MINUS_DI(dataframe, timeperiod=14)
# 极端布林带倍数:尽可能紧凑,频繁触发网格
# 平衡布林带倍数:既要频繁,又要精准
dataframe['bb_mult'] = np.where(
dataframe['minus_di'] > dataframe['plus_di'],
1.5, # 熊市极紧
1.3 # 牛市超紧 ← 布林带极其接近价格
1.8, # 熊市适度
1.6 # 牛市适度 ← 兼顾频率和准确率
)
# qtpylib 动态布林带