init
This commit is contained in:
@@ -228,12 +228,13 @@ class BuySellChecker:
|
||||
###################
|
||||
### RSI buy 분석 ###
|
||||
###################
|
||||
if data["rsi"][i - 1] < data["rsis"][i - 1] and data["rsis"][i] < data["rsi"][i]:
|
||||
if data["Close"][i] < data["avg5"][i]:
|
||||
buy = data["Close"][i]
|
||||
else:
|
||||
buy = data["Low"][i]
|
||||
weight = 2
|
||||
if data["rsi"][i] < 20:
|
||||
if data["rsi"][i - 1] < data["rsis"][i - 1] and data["rsis"][i] < data["rsi"][i]:
|
||||
if data["Close"][i] < data["avg5"][i]:
|
||||
buy = data["Close"][i]
|
||||
else:
|
||||
buy = data["Low"][i]
|
||||
weight = 1
|
||||
|
||||
|
||||
return buy, weight, sell
|
||||
|
||||
Reference in New Issue
Block a user