entry long 信号总数
This commit is contained in:
parent
27bd174cb5
commit
6c7e5cc8b7
@ -402,8 +402,6 @@ class FreqaiPrimer(IStrategy):
|
||||
pair = metadata.get('pair', 'Unknown')
|
||||
conditions = []
|
||||
logger.info(f"[{pair}] populate_entry_trend 被调用,数据行数:{len(dataframe)},时间:{dataframe.index[-1]}")
|
||||
# 记录 enter_long 信号统计
|
||||
logger.info(f"[{pair}] enter_long 信号总数:{dataframe['enter_long'].sum() if 'enter_long' in dataframe.columns else 0}")
|
||||
# 获取市场趋势得分
|
||||
trend_score = self.get_market_trend(dataframe=dataframe, metadata=metadata)
|
||||
|
||||
@ -478,6 +476,9 @@ class FreqaiPrimer(IStrategy):
|
||||
f"cond4: {cond4.mean():.2%}, "
|
||||
f"cond5: {cond5.mean():.2%}, "
|
||||
f"buy_condition: {buy_condition.mean():.2%}")
|
||||
# 记录 enter_long 信号统计
|
||||
logger.info(f"[{pair}] enter_long 信号总数:{dataframe['enter_long'].sum() if 'enter_long' in dataframe.columns else 0}")
|
||||
|
||||
return dataframe
|
||||
|
||||
def populate_exit_trend(self, dataframe: DataFrame, metadata: dict) -> DataFrame:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user