This commit is contained in:
dosangyoon
2022-03-19 23:04:17 +09:00
parent 18e2ec1556
commit 01e9c1ce55

View File

@@ -754,12 +754,12 @@ class AnalyzerSqlite:
self.writeFile(type, CODE, NAME, top, stock, state) self.writeFile(type, CODE, NAME, top, stock, state)
if len(close) > 60: if len(close) > 60:
if bolingerband_lower[0] is not None and close[0] < bolingerband_lower[0] * 1.1: if bolingerband_lower[0] is not None and close[0] <= bolingerband_lower[0]:
type = "9_bolingerband 하단 근접 매수" type = "9_bolingerband 하단 근접 매수"
self.writeFile(type, CODE, NAME, top, stock, state) self.writeFile(type, CODE, NAME, top, stock, state)
if len(close) > 60: if len(close) > 60:
if bolingerband_upper[0] is not None and close[0] > bolingerband_upper[0] * 0.9: if bolingerband_upper[0] is not None and close[0] >= bolingerband_upper[0]:
type = "-9_bolingerband 상단 근접 매도" type = "-9_bolingerband 상단 근접 매도"
self.writeFile(type, CODE, NAME, top, stock, state) self.writeFile(type, CODE, NAME, top, stock, state)