添加1分钟时间打印log
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user