This commit is contained in:
dosangyoon
2022-07-08 03:21:23 +09:00
parent bf11e5fbbe
commit a432ad2939
5 changed files with 15 additions and 35 deletions

View File

@@ -304,6 +304,10 @@ class BuySellChecker:
if data["macd"][i-3] > data["macd"][i-2] and data["macd"][i-2] > data["macd"][i-1] and data["macd"][i-1] < data["macd"][i]:
buy = data["close"][i]
if data["slow_d"][i] > 90 and data["rsi"][i] > 65:
if data["upper"][i] <= data["high"][i]:
sell = data["close"][i] - 5
return buy, weight, sell