This commit is contained in:
dsyoon
2023-04-13 23:21:27 +09:00
parent 1e5981035e
commit 38ffffea8e

View File

@@ -168,19 +168,19 @@ class HTS_etf (HTS):
type_stock = {'day':1, 'week':10, 'month':100} type_stock = {'day':1, 'week':10, 'month':100}
if slow_k < 10: type_stock['day'] = 10 if slow_k < 10: type_stock['day'] = 10
if 10 < slow_k < 20: type_stock['day'] = 7.5 if 10 < slow_k < 15: type_stock['day'] = 7.5
if 20 < slow_k < 30: type_stock['day'] = 5 if 15 < slow_k < 20: type_stock['day'] = 5
if 30 < slow_k < 40: type_stock['day'] = 2.5 if 20 < slow_k < 25: type_stock['day'] = 2.5
if slow_k_week < 10: type_stock['week'] = 100 if slow_k_week < 10: type_stock['week'] = 100
if 10 < slow_k_week < 20: type_stock['week'] = 75 if 10 < slow_k_week < 15: type_stock['week'] = 75
if 20 < slow_k_week < 30: type_stock['week'] = 50 if 15 < slow_k_week < 20: type_stock['week'] = 50
if 30 < slow_k_week < 40: type_stock['week'] = 25 if 20 < slow_k_week < 25: type_stock['week'] = 25
if slow_k_month < 10: type_stock['month'] = 1000 if slow_k_month < 10: type_stock['month'] = 1000
if 10 < slow_k_month < 20: type_stock['month'] = 750 if 10 < slow_k_month < 15: type_stock['month'] = 750
if 20 < slow_k_month < 30: type_stock['month'] = 500 if 15 < slow_k_month < 20: type_stock['month'] = 500
if 30 < slow_k_month < 40: type_stock['month'] = 250 if 20 < slow_k_month < 25: type_stock['month'] = 250
return type_stock return type_stock