This commit is contained in:
dsyoon
2023-02-08 19:42:41 +09:00
parent ecef8b766c
commit 02d1ddde7b

View File

@@ -653,10 +653,10 @@ class Bithumb_minute(HTS):
# 매수 조건 # 매수 조건
if max(bsLine['buy'][len(bsLine['buy']) - 2:]) > 100: if max(bsLine['buy'][len(bsLine['buy']) - 2:]) > 100:
stock = self.getStock(ticker, analyzed_day, day=30) #stock = self.getStock(ticker, analyzed_day, day=30)
if stock["slow_k"][len(stock['close'])-1] > 40: #if stock["slow_k"][len(stock['close'])-1] > 40:
print (datetime.now().strftime('%Y-%m-%d %H:%M:%S'), ",", round(stock["slow_k"][len(stock['close'])-3],2), ",", round(stock["slow_k"][len(stock['close'])-2],2), ",", round(stock["slow_k"][len(stock['close'])-1], )) # print (datetime.now().strftime('%Y-%m-%d %H:%M:%S'), ",", round(stock["slow_k"][len(stock['close'])-3],2), ",", round(stock["slow_k"][len(stock['close'])-2],2), ",", round(stock["slow_k"][len(stock['close'])-1], ))
return # return
tmp = self.bithumb.get_balance(ticker) tmp = self.bithumb.get_balance(ticker)
balance = tmp[2] balance = tmp[2]