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