init
This commit is contained in:
@@ -127,7 +127,7 @@ class HTS_252670 (HTS):
|
||||
self.cancelOrderList(orderListToCancel)
|
||||
|
||||
# 매도한다.
|
||||
self.getSellingPrice(THIS_TIME, self.stock_code, final_price, diff=0)
|
||||
self.getSellingPrice(THIS_TIME, self.stock_code, final_price, diff=5)
|
||||
|
||||
# 로그 출력
|
||||
print("TIMECHECK: %s, price: %d, avg3: %.2f, avg5: %.2f, avg10: %.2f, slow_k: %.2f, open: %d, high: %d, low: %d" %
|
||||
@@ -151,7 +151,7 @@ class HTS_252670 (HTS):
|
||||
result = self.getRealTime(self.stock_code, today, LAST_DATA)
|
||||
final_price = result["close"][len(result["close"]) - 1]
|
||||
|
||||
self.getSellingPrice(THIS_TIME, self.stock_code, final_price=0)
|
||||
self.getSellingPrice(THIS_TIME, self.stock_code, final_price=5)
|
||||
|
||||
final_sell_check = True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user