This commit is contained in:
dsyoon
2024-01-25 23:10:28 +09:00
parent c91ad14849
commit 68309abb8f

View File

@@ -589,7 +589,7 @@ class Common:
# avg5 < trend # avg5 < trend
if stock['avg5'][0] < stock['trend'][0]: if stock['avg5'][0] < stock['trend'][0]:
# avg5 이전 3개 봉 위 # avg5 이전 3개 봉 위
if np.max(stock['avg5'][:3]) < stock['avg5'][i]: if np.max(stock['avg5'][:3]) < stock['avg5'][0]:
buy_type = "trend" buy_type = "trend"
check = True check = True
@@ -598,7 +598,7 @@ class Common:
stock['rsi'][1] < stock['rsi'][0]): stock['rsi'][1] < stock['rsi'][0]):
# rsi가 50을 상향 돌파할 때 # rsi가 50을 상향 돌파할 때
if 0.9 <= rise_rate and np.max(stock['rsi'][:5]) < 50 and 50 < stock['rsi'][i]: if 0.9 <= rise_rate and np.max(stock['rsi'][:5]) < 50 and 50 < stock['rsi'][0]:
buy_type = "rsi" buy_type = "rsi"
check = True check = True