This commit is contained in:
dsyoon
2023-11-22 00:39:24 +09:00
parent 65a15b657b
commit 0c5d000a7f

View File

@@ -575,9 +575,10 @@ class Common:
def check_optimal_buy_timeing(self, stock):
if stock['avg120'][0] < stock['avg60'][0] < stock['avg20'][0] < stock['avg5'][0]:
if stock['avg240'][0] < stock['avg20'][0] < stock['avg5'][0]:
if stock['rsi'][0] < 70:
return True
if stock['avg20'][1] < stock['avg20'][0] and stock['avg5'][1] < stock['avg5'][0]:
if stock['avg240'][0] < stock['avg20'][0] < stock['avg5'][0]:
if stock['rsi'][0] < 70:
return True
return False