绿色通道至少要满足4条

This commit is contained in:
zhangkun9038@dingtalk.com 2025-08-18 09:03:37 +08:00
parent aff3ba1eef
commit 5edd1cace4

View File

@ -633,7 +633,7 @@ class FreqaiPrimer(IStrategy):
is_green_channel = (trend_status == "bullish" and open_trades <= 2)
if is_green_channel:
# 🟢 牛市绿色通道持仓≤2个25USDT入场5条件满足3个即可
# 🟢 牛市绿色通道持仓≤2个25USDT入场5条件需要满足4个
cond1 = (dataframe["&-price_value_divergence"] < self.buy_threshold * 1.8) # 超宽松偏离度
cond2 = (dataframe["volume_z_score"] > volume_z_score_threshold * 0.4) # 超低成交量要求
cond3 = (dataframe["rsi"] < rsi_threshold * 1.4) # 超宽松RSI
@ -642,8 +642,8 @@ class FreqaiPrimer(IStrategy):
core_conditions = [cond1, cond2, cond3, cond4, cond5]
satisfied_count = sum([c.iloc[-1] for c in core_conditions])
buy_condition = satisfied_count >= 3
logger.info(f"[{pair}] 🟢 牛市绿色通道:持仓{open_trades}≤2个25USDT入场5条件满足{satisfied_count}/3")
buy_condition = satisfied_count >= 4
logger.info(f"[{pair}] 🟢 牛市绿色通道:持仓{open_trades}≤2个25USDT入场5条件需要满足{satisfied_count}/4")
elif trend_status == "bullish":
# 牛市正常通道:持仓>2个75USDT入场必须满足全部7个条件