init
This commit is contained in:
@@ -616,11 +616,18 @@ class Common:
|
||||
|
||||
def buy_stock_candidate(self, param, stock):
|
||||
check = False
|
||||
if len(stock['trend']) < 1:
|
||||
if len(stock['trend']) < 10:
|
||||
return check
|
||||
|
||||
if not (stock['avg60'][1] < stock['avg20'][1] and stock['avg5'][1]) and (stock['avg60'][0] < stock['avg20'][0] and stock['avg5'][0]):
|
||||
check = True
|
||||
if stock['upper'][0] < stock['high'][0]:
|
||||
# 볼린저 밴드 width 로 매수 시점
|
||||
for i in range(10):
|
||||
if stock['width'][i+1] < 20 and 20 < stock['width'][i]:
|
||||
check = True
|
||||
break
|
||||
# 볼린저 밴드 %B와 MFI로 매수 시점
|
||||
if 80 < stock['pb'][i+1] and 80 < stock['mfi'][i]:
|
||||
check = True
|
||||
|
||||
return check
|
||||
|
||||
|
||||
Reference in New Issue
Block a user