This commit is contained in:
dsyoon
2024-11-02 20:36:39 +09:00
parent 5e88195d58
commit 7ca2011843

View File

@@ -586,25 +586,25 @@ class AnalyzerSqlite:
log = str(count) + "_" + dir_name + "_"
self.writeFile(dir_name, CODE, NAME, top, stock_daily, log)
check = self.common.buy_stock_dail5_5_20(stock_daily)
check = self.common.buy_stock_daily_5_20(stock_daily)
if check:
count += 1
dir_name = "daily_5_20"
log = str(count) + "_" + dir_name + "_"
self.writeFile(dir_name, CODE, NAME, top, stock_daily, log)
result.append({'ticker_code': CODE, 'ticker_name': NAME,'close': stock_daily['close'][0]})
result.append({'ticker_code': CODE, 'ticker_name': NAME,'close': stock_daily['close'][0], 'type': '5~20'})
check = self.common.buy_stock_dail5_20_60(stock_daily)
check = self.common.buy_stock_daily_20_60(stock_daily)
if check:
count += 1
dir_name = "daily_20_60"
log = str(count) + "_" + dir_name + "_"
self.writeFile(dir_name, CODE, NAME, top, stock_daily, log)
result.append({'ticker_code': CODE, 'ticker_name': NAME,'close': stock_daily['close'][0]})
result.append({'ticker_code': CODE, 'ticker_name': NAME,'close': stock_daily['close'][0], 'type': '20~60'})
pStr = '[Stock Analysis]\n'
for item in result:
pStr += " {} {} ({:.2f})\n".format(item['ticker_code'], item['ticker_name'], item['close'])
pStr += " <{}> {} {} ({:.2f})\n".format(item['type'], item['ticker_code'], item['ticker_name'], item['close'])
self.bot.sendMsg(pStr)
return