init
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user