init
This commit is contained in:
@@ -306,10 +306,8 @@ class AnalyzerSqlite:
|
||||
|
||||
if dir_code == "0":
|
||||
fileName = "%s/%s_%s_%s_%s_%s.html" % (fileName, str(final_status_count), top, NAME.replace(" ", ""), CODE, state)
|
||||
elif dir_code == "25": # 낙폭과대
|
||||
fileName = "%s/%s_%s_%s_%s.html" % (fileName, state, NAME.replace(" ", ""), CODE, top)
|
||||
else:
|
||||
fileName = "%s/%s_%s_%s_%s.html" % (fileName, top, NAME.replace(" ", ""), CODE, state)
|
||||
fileName = "%s/%s_%s_%s_%s.html" % (fileName, state, NAME.replace(" ", ""), CODE, top)
|
||||
po.write_html(fig, file=fileName, auto_open=False)
|
||||
return
|
||||
|
||||
@@ -490,6 +488,7 @@ class AnalyzerSqlite:
|
||||
dir_code = "3"
|
||||
dir_name = "monthly_macd_-300이하"
|
||||
final_status_count += 1
|
||||
status = "{:.2f}".format(stock_monthly['macd'][0]) + "_" + status
|
||||
self.writeFile(dir_code, dir_name, CODE, NAME, top, stock_monthly, status)
|
||||
|
||||
# RSI가 20 이하인 경우
|
||||
@@ -499,6 +498,7 @@ class AnalyzerSqlite:
|
||||
dir_code = "4"
|
||||
dir_name = "monthly_rsi_20이하"
|
||||
final_status_count += 1
|
||||
status = "{:.2f}".format(stock_monthly['rsi'][0]) + "_" + status
|
||||
self.writeFile(dir_code, dir_name, CODE, NAME, top, stock_monthly, status)
|
||||
|
||||
if len(stock_monthly['volume']) > 5:
|
||||
@@ -550,6 +550,7 @@ class AnalyzerSqlite:
|
||||
dir_code = "13"
|
||||
dir_name = "weekly_rsi_15이하"
|
||||
final_status_count += 1
|
||||
status = "{:.2f}".format(stock_weekly['rsi'][0]) + "_" + status
|
||||
self.writeFile(dir_code, dir_name, CODE, NAME, top, stock_weekly, status)
|
||||
|
||||
|
||||
@@ -564,6 +565,7 @@ class AnalyzerSqlite:
|
||||
dir_code = "21"
|
||||
dir_name = "daily_macd_-500이하"
|
||||
final_status_count += 1
|
||||
status = "{:.2f}".format(stock_daily['macd'][0]) + "_" + status
|
||||
self.writeFile(dir_code, dir_name, CODE, NAME, top, stock_daily, status)
|
||||
|
||||
# 2년 중 최대 거래량인 경우
|
||||
|
||||
Reference in New Issue
Block a user