init
This commit is contained in:
@@ -589,7 +589,7 @@ class Common:
|
||||
# avg5 < trend
|
||||
if stock['avg5'][0] < stock['trend'][0]:
|
||||
# avg5 이전 3개 봉 위
|
||||
if np.max(stock['avg5'][:3]) < stock['avg5'][i]:
|
||||
if np.max(stock['avg5'][:3]) < stock['avg5'][0]:
|
||||
buy_type = "trend"
|
||||
check = True
|
||||
|
||||
@@ -598,7 +598,7 @@ class Common:
|
||||
stock['rsi'][1] < stock['rsi'][0]):
|
||||
|
||||
# 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"
|
||||
check = True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user