From 5c620e147493997dd37e2078c1cf1d0a19e3cf94 Mon Sep 17 00:00:00 2001 From: "dosang.yoon" Date: Sun, 27 Feb 2022 18:48:35 +0900 Subject: [PATCH] init --- stockpredictor/analysis/AnalyzerSqlite.py | 25 +++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/stockpredictor/analysis/AnalyzerSqlite.py b/stockpredictor/analysis/AnalyzerSqlite.py index bcb3b12..4be0269 100644 --- a/stockpredictor/analysis/AnalyzerSqlite.py +++ b/stockpredictor/analysis/AnalyzerSqlite.py @@ -421,12 +421,14 @@ class AnalyzerSqlite: self.makeDir("1_거래량_상승") self.makeDir("1_코로나_근접") - self.makeDir("5_거래량 10배 이상") - self.makeDir("6_정배열") + self.makeDir("4_정배열") + self.makeDir("5_거래량 7배 이상_120일선_위_기준선") + self.makeDir("6_거래량 7배 이상_20일선_위_기준선") self.makeDir("7_bolingerband 하단 돌파 상승") self.makeDir("8_저점_매수관심") self.makeDir("9_저점_매수") + return def writeFile(self, type, CODE, NAME, top, stock, state): @@ -716,16 +718,23 @@ class AnalyzerSqlite: type = "1_코로나_근접" self.writeFile(type, CODE, NAME, top, stock, state) - - if len(volume)>2 and volume[0] > volume[1]*10: - type = "5_거래량 10배 이상" - self.writeFile(type, CODE, NAME, top, stock, state) - right_arrange = self.common.check_RightArrange(stock) if right_arrange != "": - type = "6_정배열" + type = "4_정배열" self.writeFile(type, CODE, NAME, top, stock, state) + if len(volume)>2: + if volume[0] > volume[1]*7: + if avg120[0] < ichimokucloud_baseLine[0]: + type = "5_거래량 7배 이상_120일선_위_기준선" + self.writeFile(type, CODE, NAME, top, stock, state) + + if len(volume)>2: + if volume[0] > volume[1]*7: + if avg20[0] < ichimokucloud_baseLine[0]: + type = "6_거래량 7배 이상_20일선_위_기준선" + self.writeFile(type, CODE, NAME, top, stock, state) + if (len(close) > 60 and (bolingerband_lower[0] is not None and bolingerband_lower[1] is not None) and close[0] > bolingerband_lower[0] and close[1] < bolingerband_lower[1]): type = "7_bolingerband 하단 돌파 상승"