init
This commit is contained in:
@@ -574,8 +574,10 @@ class Common:
|
||||
|
||||
def check_optimal_buy_timeing(self, param, stock):
|
||||
check = False
|
||||
rise_rate = param['bull'][0] / (param['bull'][0]+param['bear'][0]+param['bull'][0])
|
||||
if len(stock['trend']) < 1:
|
||||
return check
|
||||
|
||||
rise_rate = param['bull'][0] / (param['bull'][0]+param['bear'][0]+param['bull'][0])
|
||||
if (
|
||||
(stock['macd'][1] < stock['macd'][0] and stock['rsi'][0] < 80) or
|
||||
(stock['rsi'][1] < stock['rsi'][0] and np.min(stock['rsi'][:3]) < 35) or
|
||||
|
||||
Reference in New Issue
Block a user