init
This commit is contained in:
@@ -526,12 +526,12 @@ class AnalyzerSqlite:
|
|||||||
c_index = 200
|
c_index = 200
|
||||||
if len(stock_daily['volume']) < c_index:
|
if len(stock_daily['volume']) < c_index:
|
||||||
c_index = len(stock_daily['volume'])
|
c_index = len(stock_daily['volume'])
|
||||||
avg = sum(stock_daily['volume'][1:c_index]) / len(stock_daily['volume'][1:c_index])
|
max_volume = max(stock_daily['volume'][1:c_index])
|
||||||
if 0 < avg + avg/2 and avg + avg/2 < stock_daily['volume'][0]:
|
if max_volume < stock_daily['volume'][0]:
|
||||||
dir_code = "13"
|
dir_code = "13"
|
||||||
dir_name = "daily_이전에_없던_거래량"
|
dir_name = "daily_이전에_없던_거래량"
|
||||||
final_status_count += 1
|
final_status_count += 1
|
||||||
status = "{:.2f}".format(stock_daily['volume'][0]/(avg + avg/2))
|
status = "{:.2f}".format((stock_daily['volume'][0] - max_volume)/max_volume)
|
||||||
self.writeFile(dir_code, dir_name, CODE, NAME, top, stock_daily, status)
|
self.writeFile(dir_code, dir_name, CODE, NAME, top, stock_daily, status)
|
||||||
|
|
||||||
# daily_이격도
|
# daily_이격도
|
||||||
|
|||||||
Reference in New Issue
Block a user