This commit is contained in:
dsyoon
2023-02-18 11:08:55 +09:00
parent b5384ddc6f
commit 616cc31a1e
2 changed files with 3 additions and 3 deletions

View File

@@ -120,9 +120,9 @@ class HTS_etf (HTS):
MAX_BUY_PRICE = 50000 MAX_BUY_PRICE = 50000
if stock_code == "252670" or stock_code == "122630": if stock_code == "252670" or stock_code == "122630":
if data['slow_k'][-2] < data['slow_k'][-1] < 40: if data['slow_k'][-2] < data['slow_k'][-1] < 40:
MAX_BUY_PRICE = 100000
if data['slow_k'][-2] < data['slow_k'][-1] < 20:
MAX_BUY_PRICE = 200000 MAX_BUY_PRICE = 200000
if data['slow_k'][-2] < data['slow_k'][-1] < 20:
MAX_BUY_PRICE = 300000
count = int(MAX_BUY_PRICE / price) count = int(MAX_BUY_PRICE / price)
return count return count

View File

@@ -38,7 +38,7 @@ class HTS_Stocks (HTS):
self.orderChecker = OrderChecker(self.RESOURCE_PATH, "STOCK") self.orderChecker = OrderChecker(self.RESOURCE_PATH, "STOCK")
self.analyzed_day = 120 self.analyzed_day = 120
self.MAX_BUY_PRICE = 100000 self.MAX_BUY_PRICE = 300000
return return