添加1分钟时间打印log

This commit is contained in:
jackyu66git
2026-02-02 12:33:22 +08:00
parent f2f17b70bb
commit cefd048ab5
4 changed files with 9 additions and 4 deletions
+3 -1
View File
@@ -106,7 +106,9 @@ class ChanLun_EMA52(IStrategy):
dataframe['rsi'] = ta.RSI(dataframe, timeperiod=14)
last_price = dataframe.iloc[-1]['close']
tf_ema52_list = self.chan.check_price_ema52(last_price)
print(tf_ema52_list)
if self.last_time + timedelta(minutes=1) < datetime.now():
print(tf_ema52_list)
self.last_time = datetime.now()
return dataframe
def init_dataframes(self, dataframe_1m):
dataframe_15m = self.dp.get_pair_dataframe(pair=self.pair, timeframe='15m')