This commit is contained in:
dsyoon
2022-12-18 20:43:21 +09:00
parent 03821bb2ae
commit a52a891264

View File

@@ -267,7 +267,7 @@ class AnalyzerSqlite:
self.makeDir("monthly_6월선_36월선_상향돌파")
self.makeDir("monthly_종가_12월선_상향돌파")
self.makeDir("monthly_macd_0이하")
self.makeDir("monthly_macd_-300이하")
self.makeDir("monthly_rsi_20이하")
self.makeDir("monthly_BB하단_내려옴")
@@ -275,7 +275,7 @@ class AnalyzerSqlite:
self.makeDir("weekly_종가_12주선_상향돌파")
self.makeDir("weekly_rsi_15이하")
self.makeDir("daily_macd_100이하")
self.makeDir("daily_macd_-500이하")
self.makeDir("daily_rsi_10이하")
self.makeDir("daily_이전에_없던_거래량")
self.makeDir("daily_이격도")
@@ -482,8 +482,8 @@ class AnalyzerSqlite:
# MACD가 0 이하인 경우
if len(stock_monthly['close']) > 1:
if stock_monthly['macd'][0] is not None:
if stock_monthly['macd'][0] <= 0:
type = "monthly_macd_0이하"
if stock_monthly['macd'][0] <= -300:
type = "monthly_macd_-300이하"
final_status += " " + type
final_status_count += 1
self.writeFile(type, CODE, NAME, top, stock_monthly, status)
@@ -556,8 +556,8 @@ class AnalyzerSqlite:
if len(stock_daily['volume']) > 5:
# RSI가 10 이하인 경우
if stock_daily['macd'][0] is not None:
if stock_daily['macd'][0] <= 10:
type = "daily_macd_100이하"
if stock_daily['macd'][0] <= -500:
type = "daily_macd_-500이하"
final_status += " " + type
final_status_count += 1
self.writeFile(type, CODE, NAME, top, stock_daily, status)