init
This commit is contained in:
@@ -483,10 +483,10 @@ class AnalyzerSqlite:
|
|||||||
final_status_count += 1
|
final_status_count += 1
|
||||||
self.writeFile(type, CODE, NAME, top, stock_monthly, status)
|
self.writeFile(type, CODE, NAME, top, stock_monthly, status)
|
||||||
|
|
||||||
# RSI가 30 이하인 경우
|
# RSI가 20 이하인 경우
|
||||||
if len(stock_monthly['close']) > 1:
|
if len(stock_monthly['close']) > 1:
|
||||||
if stock_monthly['rsi'][0] is not None:
|
if stock_monthly['rsi'][0] is not None:
|
||||||
if stock_monthly['rsi'][0] <= 30:
|
if stock_monthly['rsi'][0] <= 20:
|
||||||
type = "monthly_rsi_30이하"
|
type = "monthly_rsi_30이하"
|
||||||
final_status += " " + type
|
final_status += " " + type
|
||||||
final_status_count += 1
|
final_status_count += 1
|
||||||
@@ -544,10 +544,10 @@ class AnalyzerSqlite:
|
|||||||
final_status_count += 1
|
final_status_count += 1
|
||||||
self.writeFile(type, CODE, NAME, top, stock_weekly, status)
|
self.writeFile(type, CODE, NAME, top, stock_weekly, status)
|
||||||
|
|
||||||
# RSI가 25 이하인 경우
|
# RSI가 15 이하인 경우
|
||||||
if len(stock_monthly['close']) > 1:
|
if len(stock_monthly['close']) > 1:
|
||||||
if stock_weekly['rsi'][0] is not None:
|
if stock_weekly['rsi'][0] is not None:
|
||||||
if stock_weekly['rsi'][0] <= 25:
|
if stock_weekly['rsi'][0] <= 15:
|
||||||
type = "weekly_rsi_25이하"
|
type = "weekly_rsi_25이하"
|
||||||
final_status += " " + type
|
final_status += " " + type
|
||||||
final_status_count += 1
|
final_status_count += 1
|
||||||
@@ -579,9 +579,9 @@ class AnalyzerSqlite:
|
|||||||
|
|
||||||
# 3) daily
|
# 3) daily
|
||||||
if len(stock_daily['volume']) > 5:
|
if len(stock_daily['volume']) > 5:
|
||||||
# RSI가 25 이하인 경우
|
# RSI가 10 이하인 경우
|
||||||
if stock_daily['rsi'][0] is not None:
|
if stock_daily['rsi'][0] is not None:
|
||||||
if stock_daily['rsi'][0] <= 25:
|
if stock_daily['rsi'][0] <= 10:
|
||||||
type = "daily_rsi_25이하"
|
type = "daily_rsi_25이하"
|
||||||
final_status += " " + type
|
final_status += " " + type
|
||||||
final_status_count += 1
|
final_status_count += 1
|
||||||
|
|||||||
Reference in New Issue
Block a user