当前行情价格必须低于ema50
This commit is contained in:
parent
1763df6b55
commit
a46825151f
@ -880,9 +880,10 @@ class FreqaiPrimer(IStrategy):
|
||||
bb_close_value = dataframe["close"].iloc[-1]
|
||||
bb_lower_value = dataframe["bb_lowerband"].iloc[-1]
|
||||
bb_upper_value = dataframe["bb_upperband"].iloc[-1]
|
||||
ema50_value = dataframe["ema50"].iloc[-1]
|
||||
|
||||
# 输出关键指标以便调试
|
||||
logger.info(f"[{pair}] 📊 关键指标 - 偏离度: {divergence_value:.6f}, RSI: {rsi_value:.2f}, STOCHRSI: {stochrsi_value:.2f}, 价格: {bb_close_value:.4f}, 下轨: {bb_lower_value:.4f}, 上轨: {bb_upper_value:.4f}")
|
||||
logger.info(f"[{pair}] 📊 关键指标 - 偏离度: {divergence_value:.6f}, RSI: {rsi_value:.2f}, STOCHRSI: {stochrsi_value:.2f}, 价格: {bb_close_value:.4f}, EMA50: {ema50_value:.4f}, 价格低于EMA50: {bb_close_value < ema50_value}")
|
||||
logger.info(f"[{pair}] 🔍 买入阈值 - 偏离度: {self.buy_threshold:.6f}, RSI: {rsi_threshold:.2f}, STOCHRSI: {stochrsi_threshold:.2f}")
|
||||
|
||||
# 获取条件结果的最后一行值(仅用于日志)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user