init
This commit is contained in:
@@ -247,7 +247,7 @@ class AnalyzerSqlite:
|
|||||||
self.makeDir("monthly_BB하단_내려옴")
|
self.makeDir("monthly_BB하단_내려옴")
|
||||||
|
|
||||||
self.makeDir("daily_rsi_10이하")
|
self.makeDir("daily_rsi_10이하")
|
||||||
self.makeDir("daily_거래량_7배_이상_상승")
|
self.makeDir("daily_이전에_없던_거래량")
|
||||||
self.makeDir("daily_BB하단_내려옴")
|
self.makeDir("daily_BB하단_내려옴")
|
||||||
self.makeDir("daily_종가_60일선_상향돌파")
|
self.makeDir("daily_종가_60일선_상향돌파")
|
||||||
|
|
||||||
@@ -534,10 +534,18 @@ class AnalyzerSqlite:
|
|||||||
final_status_count += 1
|
final_status_count += 1
|
||||||
self.writeFile(type, CODE, NAME, top, stock_weekly, status)
|
self.writeFile(type, CODE, NAME, top, stock_weekly, status)
|
||||||
|
|
||||||
# 거래량이 7배 이상 상승한 경우
|
# 2년 중 최대 거래량인 경우
|
||||||
for c_index in range(1, 5):
|
size = len(stock_daily['volume'])
|
||||||
if stock_daily['volume'][c_index] > (stock_daily['volume'][c_index+1]) * 5:
|
first_index = 520
|
||||||
type = "daily_거래량_7배_이상_상승"
|
if len(stock_daily['volume']) < first_index:
|
||||||
|
first_index = len(stock_daily['volume'])
|
||||||
|
valid = True
|
||||||
|
for c_index in range(size-first_index, size):
|
||||||
|
if stock_daily['volume'][c_index] > stock_daily['volume'][size-1]:
|
||||||
|
valid = False
|
||||||
|
break
|
||||||
|
if valid:
|
||||||
|
type = "daily_이전에_없던_거래량"
|
||||||
final_status += " " + type
|
final_status += " " + type
|
||||||
final_status_count += 1
|
final_status_count += 1
|
||||||
self.writeFile(type, CODE, NAME, top, stock_daily, status)
|
self.writeFile(type, CODE, NAME, top, stock_daily, status)
|
||||||
|
|||||||
Reference in New Issue
Block a user