绿色通道至少要满足4条
This commit is contained in:
parent
aff3ba1eef
commit
5edd1cace4
@ -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个条件
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user