This commit is contained in:
dsyoon
2023-04-13 23:33:22 +09:00
parent a2d2c79460
commit 0548a77cc4
2 changed files with 99 additions and 68 deletions

View File

@@ -167,20 +167,36 @@ class HTS_etf (HTS):
type_stock = {'day':1, 'week':10, 'month':100}
if slow_k < 10: type_stock['day'] = 10
if 10 < slow_k < 15: type_stock['day'] = 7.5
if 15 < slow_k < 20: type_stock['day'] = 5
if 20 < slow_k < 25: type_stock['day'] = 2.5
if stock_code == "^KS11":
if slow_k < 20: type_stock['day'] = 10
if 20 < slow_k < 25: type_stock['day'] = 7.5
if 25 < slow_k < 30: type_stock['day'] = 5
if 30 < slow_k < 35: type_stock['day'] = 2.5
if slow_k_week < 10: type_stock['week'] = 100
if 10 < slow_k_week < 15: type_stock['week'] = 75
if 15 < slow_k_week < 20: type_stock['week'] = 50
if 20 < slow_k_week < 25: type_stock['week'] = 25
if slow_k_week < 20: type_stock['week'] = 100
if 20 < slow_k_week < 25: type_stock['week'] = 75
if 25 < slow_k_week < 30: type_stock['week'] = 50
if 30 < slow_k_week < 35: type_stock['week'] = 25
if slow_k_month < 10: type_stock['month'] = 1000
if 10 < slow_k_month < 15: type_stock['month'] = 750
if 15 < slow_k_month < 20: type_stock['month'] = 500
if 20 < slow_k_month < 25: type_stock['month'] = 250
if slow_k_month < 20: type_stock['month'] = 1000
if 20 < slow_k_month < 25: type_stock['month'] = 750
if 25 < slow_k_month < 30: type_stock['month'] = 500
if 30 < slow_k_month < 35: type_stock['month'] = 250
else:
if slow_k < 10: type_stock['day'] = 10
if 10 < slow_k < 15: type_stock['day'] = 7.5
if 15 < slow_k < 20: type_stock['day'] = 5
if 20 < slow_k < 25: type_stock['day'] = 2.5
if slow_k_week < 10: type_stock['week'] = 100
if 10 < slow_k_week < 15: type_stock['week'] = 75
if 15 < slow_k_week < 20: type_stock['week'] = 50
if 20 < slow_k_week < 25: type_stock['week'] = 25
if slow_k_month < 10: type_stock['month'] = 1000
if 10 < slow_k_month < 15: type_stock['month'] = 750
if 15 < slow_k_month < 20: type_stock['month'] = 500
if 20 < slow_k_month < 25: type_stock['month'] = 250
return type_stock