fix3
This commit is contained in:
parent
7375ae1b11
commit
d1734590cc
@ -20,7 +20,7 @@ from user_data.strategies.notifier import send_start_deliminator_message
|
||||
|
||||
class Strategy002(IStrategy):
|
||||
if Config.IS_BACKTEST:
|
||||
send_start_deliminator_message(Config.BACKTEST_COIN ,Config.BACKTEST_MONTH_LIST[Config.BACKTEST_DATA_CLEANER_MONTH_INDEX], Config.BACKTEST_DATA_CLEANER_YEAR)
|
||||
send_start_deliminator_message('Freq Strategy002 ',Config.BACKTEST_COIN ,Config.BACKTEST_MONTH_LIST[Config.BACKTEST_DATA_CLEANER_MONTH_INDEX], Config.BACKTEST_DATA_CLEANER_YEAR)
|
||||
"""
|
||||
Strategy 002
|
||||
author@: Gerald Lonlas
|
||||
|
@ -20,7 +20,7 @@ from user_data.strategies.notifier import send_start_deliminator_message
|
||||
|
||||
class Strategy003(IStrategy):
|
||||
if Config.IS_BACKTEST:
|
||||
send_start_deliminator_message(Config.BACKTEST_COIN ,Config.BACKTEST_MONTH_LIST[Config.BACKTEST_DATA_CLEANER_MONTH_INDEX], Config.BACKTEST_DATA_CLEANER_YEAR)
|
||||
send_start_deliminator_message('Freq Strategy003 ',Config.BACKTEST_COIN ,Config.BACKTEST_MONTH_LIST[Config.BACKTEST_DATA_CLEANER_MONTH_INDEX], Config.BACKTEST_DATA_CLEANER_YEAR)
|
||||
"""
|
||||
Strategy 003
|
||||
author@: Gerald Lonlas
|
||||
|
@ -17,7 +17,7 @@ from user_data.strategies.notifier import send_start_deliminator_message
|
||||
|
||||
class Strategy004(IStrategy):
|
||||
if Config.IS_BACKTEST:
|
||||
send_start_deliminator_message(Config.BACKTEST_COIN ,Config.BACKTEST_MONTH_LIST[Config.BACKTEST_DATA_CLEANER_MONTH_INDEX], Config.BACKTEST_DATA_CLEANER_YEAR)
|
||||
send_start_deliminator_message('Freq Strategy004 ', Config.BACKTEST_COIN ,Config.BACKTEST_MONTH_LIST[Config.BACKTEST_DATA_CLEANER_MONTH_INDEX], Config.BACKTEST_DATA_CLEANER_YEAR)
|
||||
"""
|
||||
Strategy 004
|
||||
author@: Gerald Lonlas
|
||||
|
@ -4,9 +4,9 @@ sys.path.append(Config.EXECUTION_PATH)
|
||||
from config import Config
|
||||
|
||||
|
||||
def send_start_deliminator_message(coin, month, year):
|
||||
print("notifier: send_start_deliminator_message: action= ")
|
||||
text = "=========" + str(coin) + " " + str(month) + " " + str(year) + "=========>"
|
||||
def send_start_deliminator_message(brain, coin, month, year):
|
||||
print("notifier: send_start_deliminator_message: ")
|
||||
text = "========" + str(brain) + str(coin) + " " + str(month) + " " + str(year) + "=======>"
|
||||
|
||||
result = requests.post('https://api.telegram.org/bot' + Config.NOTIFIER_TELEGRAM_BOT_API_TOKEN_BACKTEST +
|
||||
'/sendMessage?chat_id=' + Config.NOTIFIER_TELEGRAM_CHANNEL_ID_BACKTEST + '&text=' + text + '&parse_mode=Markdown')
|
||||
|
Loading…
Reference in New Issue
Block a user