init
This commit is contained in:
@@ -410,6 +410,7 @@ class AnalyzerSqlite:
|
||||
self.makeDir("-3_후행스팬_캔들_아래로_내려옴")
|
||||
|
||||
self.makeDir("1_거래량_상승")
|
||||
self.makeDir("1_코로나_근접")
|
||||
|
||||
return
|
||||
|
||||
@@ -481,6 +482,12 @@ class AnalyzerSqlite:
|
||||
low.append(price[4])
|
||||
volume.append(price[5])
|
||||
|
||||
covid_low_ymd_index = 0
|
||||
for i in ymd_:
|
||||
if i == '2020.03.19':
|
||||
break
|
||||
covid_low_ymd_index += 1
|
||||
|
||||
sql = 'SELECT ymd, avg5, avg10, avg20, avg60, avg120, avg200, avg240, '
|
||||
sql += ' bolingerband_upper, bolingerband_lower, bolingerband_middle, '
|
||||
sql += ' ichimokucloud_changeLine, ichimokucloud_baseLine, ichimokucloud_leadingSpan1, ichimokucloud_leadingSpan2, '
|
||||
@@ -690,6 +697,10 @@ class AnalyzerSqlite:
|
||||
type = "1_거래량_상승"
|
||||
self.writeFile(type, CODE, NAME, stock, state)
|
||||
|
||||
if (len(close) > covid_low_ymd_index and close[0] < close[covid_low_ymd_index]*1.1):
|
||||
type = "1_코로나_근접"
|
||||
self.writeFile(type, CODE, NAME, stock, state)
|
||||
|
||||
return
|
||||
|
||||
def get_moving_average(self, stock):
|
||||
|
||||
Reference in New Issue
Block a user