添加logger信息
This commit is contained in:
@@ -107,7 +107,7 @@ class ChanLun_EMA52(IStrategy):
|
|||||||
last_price = dataframe.iloc[-1]['close']
|
last_price = dataframe.iloc[-1]['close']
|
||||||
tf_ema52_list = self.chan.check_price_ema52(last_price)
|
tf_ema52_list = self.chan.check_price_ema52(last_price)
|
||||||
if self.last_time + timedelta(minutes=1) < datetime.now():
|
if self.last_time + timedelta(minutes=1) < datetime.now():
|
||||||
print(tf_ema52_list)
|
logger.info(tf_ema52_list)
|
||||||
self.last_time = datetime.now()
|
self.last_time = datetime.now()
|
||||||
return dataframe
|
return dataframe
|
||||||
def init_dataframes(self, dataframe_1m):
|
def init_dataframes(self, dataframe_1m):
|
||||||
|
|||||||
Reference in New Issue
Block a user