init
This commit is contained in:
@@ -592,9 +592,13 @@ class AnalyzerSqlite:
|
||||
self.writeFile(type, CODE, NAME, top, stock_daily, status)
|
||||
|
||||
# daily_낙폭과대 (50% 이상 하락)
|
||||
c_index = 520
|
||||
c_index = 52*5
|
||||
if len(stock_daily['close']) < c_index:
|
||||
c_index = len(stock_daily['close'])
|
||||
for idx in range(1,c_index):
|
||||
if stock_daily['close'][idx-1] < int(stock_daily['close'][idx]/3):
|
||||
c_index = idx
|
||||
|
||||
location = (max(stock_daily['close'][1:c_index]) - stock_daily['close'][0]) / max(stock_daily['close'][1:c_index])
|
||||
if location > 0.5:
|
||||
type = "daily_낙폭과대"
|
||||
|
||||
Reference in New Issue
Block a user