init
This commit is contained in:
@@ -580,17 +580,15 @@ class Common:
|
||||
(stock['rsi'][-1:] < 33) or
|
||||
0.9 <= param['bull'][0] / param['bear'][0]
|
||||
):
|
||||
# trend 상승
|
||||
if stock['trend'][i - 1] < stock['trend'][i]:
|
||||
# avg360 상승
|
||||
if stock['avg360'][i - 1] < stock['avg360'][i]:
|
||||
# avg3 < trend
|
||||
if stock['avg3'][i] < stock['trend'][i]:
|
||||
# avg3 이전 3개 봉 위
|
||||
if np.max(stock['avg3'][i - 3:i]) < stock['avg3'][i]:
|
||||
buy_type = "trend"
|
||||
buy_weight = 1 # 8
|
||||
check = True
|
||||
# avg360 상승
|
||||
if stock['avg300'][i - 1] < stock['avg300'][i]:
|
||||
# avg3 < trend
|
||||
if stock['avg3'][i] < stock['trend'][i]:
|
||||
# avg3 이전 3개 봉 위
|
||||
if np.max(stock['avg3'][i - 3:i]) < stock['avg3'][i]:
|
||||
buy_type = "trend"
|
||||
buy_weight = 1 # 8
|
||||
check = True
|
||||
|
||||
# 상승 추세일 때
|
||||
if (stock['macd'][-2] < stock['macd'][-1] and stock['macds'][-1] < stock['macd'][
|
||||
|
||||
Reference in New Issue
Block a user