init
This commit is contained in:
@@ -286,6 +286,7 @@ class AnalyzerSqlite:
|
||||
self.makeDir("15", "daily_낙폭과대")
|
||||
self.makeDir("16", "daily_EV하단_내려옴")
|
||||
self.makeDir("17", "daily_BB하단_내려옴")
|
||||
self.makeDir("18", "daily_rsi_20이하")
|
||||
|
||||
return
|
||||
|
||||
@@ -598,6 +599,18 @@ class AnalyzerSqlite:
|
||||
final_status_count += 1
|
||||
self.writeFile(dir_code, dir_name, CODE, NAME, top, stock_daily, status)
|
||||
|
||||
# RSI가 20 이하인 경우, rsi가 rsis위로 올라온 경우
|
||||
if len(stock_daily['close']) > 1:
|
||||
if stock_daily['rsi'][0] is not None and stock_daily['rsi'][1] is not None and \
|
||||
stock_daily['rsis'][0] is not None and stock_daily['rsis'][1] is not None:
|
||||
if stock_daily['rsi'][0] <= 20:
|
||||
if stock_daily['rsi'][1] < stock_daily['rsis'][1] and stock_daily['rsis'][0] < stock_daily['rsi'][0]:
|
||||
dir_code = "18"
|
||||
dir_name = "daily_rsi_20이하"
|
||||
final_status_count += 1
|
||||
status = "{:.2f}".format(stock_monthly['rsi'][0]) + "_" + status
|
||||
self.writeFile(dir_code, dir_name, CODE, NAME, top, stock_monthly, status)
|
||||
|
||||
if final_status_count >= 5:
|
||||
dir_code = "0"
|
||||
dir_name = "final"
|
||||
|
||||
Reference in New Issue
Block a user