This commit is contained in:
dsyoon
2023-02-06 22:17:14 +09:00
parent 8bc70d9f99
commit a87d453519
2 changed files with 10 additions and 6 deletions

View File

@@ -37,7 +37,7 @@ class HTS_Stocks (HTS):
self.orderChecker = OrderChecker(self.RESOURCE_PATH, "STOCK")
self.analyzed_day = 120
self.MAX_BUY_PRICE = 100000
self.MAX_BUY_PRICE = 50000
return
@@ -150,6 +150,8 @@ class HTS_Stocks (HTS):
bs_buy_price = bsLine['buy'][last_index]
bs_buy_weight = bsLine['buy_weight'][last_index]
buy_count = int(self.MAX_BUY_PRICE / bs_buy_price)
if self.MAX_BUY_PRICE <= bs_buy_price < 2 * self.MAX_BUY_PRICE:
buy_count = int(2 * self.MAX_BUY_PRICE / bs_buy_price)
if buy_count > 0:
# 매수를 주문한다.