init
This commit is contained in:
@@ -602,8 +602,8 @@ class Common:
|
|||||||
canBuy = True
|
canBuy = True
|
||||||
index = c
|
index = c
|
||||||
break
|
break
|
||||||
if canBuy and stock['rsi'][0 - index] < 30:
|
if canBuy and stock['rsi'][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 (stock['macd'][index] < stock['macd'][0] and min(stock['open'][0], stock['close'][0]) < min(stock['open'][index], stock['close'][index])):
|
||||||
return True
|
return True
|
||||||
|
|
||||||
return False
|
return False
|
||||||
|
|||||||
Reference in New Issue
Block a user