This commit is contained in:
dsyoon
2024-02-02 02:24:12 +09:00
parent 180fe8aa0c
commit 367974f6af

View File

@@ -613,6 +613,9 @@ class Common:
buy_type = "rsi" buy_type = "rsi"
check = True check = True
if not(stock['rsi'][1] < stock['rsi'][0] and stock['rsis'][0] < stock['rsi'][0]):
check = False
return check return check
def buy_stock_candidate(self, param, stock): def buy_stock_candidate(self, param, stock):
@@ -622,8 +625,7 @@ class Common:
if not (stock['avg60'][1] < stock['avg20'][1] and stock['avg5'][1]) and (stock['avg60'][0] < stock['avg20'][0] and stock['avg5'][0]): if not (stock['avg60'][1] < stock['avg20'][1] and stock['avg5'][1]) and (stock['avg60'][0] < stock['avg20'][0] and stock['avg5'][0]):
if stock['upper'][0] < stock['avg5'][0]: if stock['upper'][0] < stock['avg5'][0]:
if stock['rsi'][1] < stock['rsi'][0] and stock['rsis'][0] < stock['rsi'][0]: check = True
check = True
return check return check