From 38ffffea8e7a0c80de5acd2d59acab10cf9f374a Mon Sep 17 00:00:00 2001 From: dsyoon Date: Thu, 13 Apr 2023 23:21:27 +0900 Subject: [PATCH] init --- HTS_etf_long.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/HTS_etf_long.py b/HTS_etf_long.py index 5f47122..9a37f84 100644 --- a/HTS_etf_long.py +++ b/HTS_etf_long.py @@ -168,19 +168,19 @@ class HTS_etf (HTS): type_stock = {'day':1, 'week':10, 'month':100} if slow_k < 10: type_stock['day'] = 10 - if 10 < slow_k < 20: type_stock['day'] = 7.5 - if 20 < slow_k < 30: type_stock['day'] = 5 - if 30 < slow_k < 40: type_stock['day'] = 2.5 + 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 < 20: type_stock['week'] = 75 - if 20 < slow_k_week < 30: type_stock['week'] = 50 - if 30 < slow_k_week < 40: type_stock['week'] = 25 + 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 < 20: type_stock['month'] = 750 - if 20 < slow_k_month < 30: type_stock['month'] = 500 - if 30 < slow_k_month < 40: type_stock['month'] = 250 + 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