This commit is contained in:
dsyoon
2023-11-09 20:16:58 +09:00
parent 526e5ab206
commit c4c8a7aa88

View File

@@ -602,8 +602,8 @@ class Common:
canBuy = True
index = c
break
if canBuy and stock['rsi'][0 - index] < 30:
if (stock['macd'][0 - index] < stock['macd'][0] and min(stock['open'][0], stock['close'][0]) < min(stock['open'][0 - index], stock['close'][0 - index])):
if canBuy and stock['rsi'][index] < 30:
if (stock['macd'][index] < stock['macd'][0] and min(stock['open'][0], stock['close'][0]) < min(stock['open'][index], stock['close'][index])):
return True
return False