添加1小时EMA5向上穿越EMA20的入场限制条件+3
This commit is contained in:
parent
9e07b8913d
commit
c9e459ec26
@ -596,10 +596,10 @@ class FreqaiPrimer(IStrategy):
|
||||
logger.error(f"[{metadata['pair']}] 缺少以下列: {missing_columns}")
|
||||
raise KeyError(f"缺少以下列: {missing_columns}")
|
||||
|
||||
# 确保所有需要的列都被合并
|
||||
# 确保所有需要的列都被合并(包括EMA交叉信号列)
|
||||
required_columns = ['date', 'rsi_1h', 'trend_1h', 'ema_50_1h', 'ema_200_1h',
|
||||
'bb_lower_1h', 'bb_upper_1h', 'stochrsi_k_1h', 'stochrsi_d_1h',
|
||||
'macd_1h', 'macd_signal_1h']
|
||||
'macd_1h', 'macd_signal_1h', 'ema_5_1h', 'ema_20_1h', 'ema5_cross_above_ema20']
|
||||
|
||||
# 验证所需列是否存在
|
||||
missing_columns = [col for col in required_columns if col not in df_1h.columns]
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user