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
if stock_code == "252670" or stock_code == "122630":
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
if data['slow_k'][-2] < data['slow_k'][-1] < 20:
MAX_BUY_PRICE = 300000
count = int(MAX_BUY_PRICE / price)
return count