init
This commit is contained in:
@@ -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]
|
||||||
|
|||||||
Reference in New Issue
Block a user