init
This commit is contained in:
@@ -526,12 +526,12 @@ class AnalyzerSqlite:
|
||||
c_index = 200
|
||||
if len(stock_daily['volume']) < c_index:
|
||||
c_index = len(stock_daily['volume'])
|
||||
avg = sum(stock_daily['volume'][1:c_index]) / len(stock_daily['volume'][1:c_index])
|
||||
if 0 < avg + avg/2 and avg + avg/2 < stock_daily['volume'][0]:
|
||||
max_volume = max(stock_daily['volume'][1:c_index])
|
||||
if max_volume < stock_daily['volume'][0]:
|
||||
dir_code = "13"
|
||||
dir_name = "daily_이전에_없던_거래량"
|
||||
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)
|
||||
|
||||
# daily_이격도
|
||||
|
||||
Reference in New Issue
Block a user