1
This commit is contained in:
parent
594750273e
commit
671d8d956a
@ -51,15 +51,18 @@ def stratergy_run(symbol, interval, df, debug):
|
||||
if latest['Long_Signal'] == True:
|
||||
direction = '多'
|
||||
if direction != "":
|
||||
message = f"策略:【MACD+BOLL策略V1.1】\r\n"
|
||||
message = '🦄Signals Notificaiton🦄\r\n\r\n'
|
||||
message += f"策略:【MACD+BOLL策略V1.1】\r\n"
|
||||
message += f"品种: {symbol}\r\n"
|
||||
message += f"周期: {interval}\r\n"
|
||||
message += f"信号: 【{direction}】\r\n"
|
||||
message += f"收盘价: {latest['close']}\r\n"
|
||||
|
||||
if debug == False:
|
||||
url = 'https://discordapp.com/api/webhooks/1286585288986198048/iQ-yr26ViW45GM48ql8rPu70Iumqcmn_XXAmxAcKGeiQBmTQoDPeq-TmlChvIHkw_HJ-'
|
||||
discord_sender.send_message(url,'🦄信号提醒🦄',message)
|
||||
# url = 'https://discordapp.com/api/webhooks/1286585288986198048/iQ-yr26ViW45GM48ql8rPu70Iumqcmn_XXAmxAcKGeiQBmTQoDPeq-TmlChvIHkw_HJ-'
|
||||
# discord_sender.send_message(url,'🦄信号提醒🦄',message)
|
||||
|
||||
dingding.send_message(message,True)
|
||||
|
||||
print(f"【{symbol} - {interval}】 is singal fired!")
|
||||
else:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user