init
This commit is contained in:
@@ -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,7 +625,6 @@ 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
|
||||||
|
|||||||
Reference in New Issue
Block a user