This commit is contained in:
dsyoon
2024-01-25 11:51:43 +09:00
parent 7a3c1371c7
commit 7c1e122ae9

View File

@@ -574,8 +574,10 @@ class Common:
def check_optimal_buy_timeing(self, param, stock):
check = False
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