init
This commit is contained in:
@@ -444,10 +444,12 @@ class AnalyzerSqlite:
|
||||
self.makeDir("monthly_env_상단_volume")
|
||||
self.makeDir("monthly_mv_5_20")
|
||||
self.makeDir("monthly_mv_20_60")
|
||||
self.makeDir("monthly_이격도")
|
||||
|
||||
self.makeDir("weekly_env_상단_volume")
|
||||
self.makeDir("weekly_mv_5_20")
|
||||
self.makeDir("weekly_mv_20_60")
|
||||
self.makeDir("weekly_이격도")
|
||||
|
||||
self.makeDir("daily_env_상단_volume")
|
||||
self.makeDir("daily_이전에_없던_거래량")
|
||||
@@ -532,6 +534,13 @@ class AnalyzerSqlite:
|
||||
log = "RSI_" + "{:.2f}".format(stock_monthly['rsi'][0])
|
||||
self.writeFile(dir_name, CODE, NAME, top, stock_monthly, log)
|
||||
|
||||
# monthly_이격도
|
||||
check = self.common.check_disparity(stock_monthly)
|
||||
if check:
|
||||
dir_name = "monthly_이격도"
|
||||
log = "이격도_" + str(top)
|
||||
self.writeFile(dir_name, CODE, NAME, top, stock_monthly, log)
|
||||
|
||||
# Weekly 체크
|
||||
if len(stock_weekly['volume']) > 40:
|
||||
|
||||
@@ -553,11 +562,19 @@ class AnalyzerSqlite:
|
||||
check = self.common.check_mv_20_60(stock_weekly)
|
||||
if check:
|
||||
dir_name = "weekly_mv_20_60"
|
||||
if stock_monthly['rsi'][0] is not None:
|
||||
log = "RSI_" + "{:.2f}".format(stock_monthly['rsi'][0])
|
||||
if stock_weekly['rsi'][0] is not None:
|
||||
log = "RSI_" + "{:.2f}".format(stock_weekly['rsi'][0])
|
||||
else:
|
||||
log = ""
|
||||
self.writeFile(dir_name, CODE, NAME, top, stock_monthly, log)
|
||||
self.writeFile(dir_name, CODE, NAME, top, stock_weekly, log)
|
||||
|
||||
# monthly_이격도
|
||||
check = self.common.check_disparity(stock_weekly)
|
||||
if check:
|
||||
dir_name = "weekly_이격도"
|
||||
log = "이격도_" + str(top)
|
||||
self.writeFile(dir_name, CODE, NAME, top, stock_weekly, log)
|
||||
|
||||
|
||||
# 2) daily
|
||||
if len(stock_daily['volume']) > 100:
|
||||
|
||||
Reference in New Issue
Block a user