init
This commit is contained in:
@@ -536,20 +536,15 @@ class AnalyzerSqlite:
|
|||||||
|
|
||||||
# 2년 중 최대 거래량인 경우
|
# 2년 중 최대 거래량인 경우
|
||||||
size = len(stock_daily['volume'])
|
size = len(stock_daily['volume'])
|
||||||
first_index = 520
|
c_index = 520
|
||||||
if len(stock_daily['volume']) < first_index:
|
if len(stock_daily['volume']) < c_index:
|
||||||
first_index = len(stock_daily['volume'])
|
c_index = len(stock_daily['volume'])
|
||||||
valid = True
|
if max(stock_daily['volume'][1:c_index]) < stock_daily['volume'][0]:
|
||||||
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_이전에_없던_거래량"
|
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)
|
||||||
break
|
|
||||||
|
|
||||||
# BB 하단에 내려옴
|
# BB 하단에 내려옴
|
||||||
for c_index in range(1, 5):
|
for c_index in range(1, 5):
|
||||||
|
|||||||
Reference in New Issue
Block a user