From 014bf74b85ffec7e1b60847b25a7ea56af62bc1e Mon Sep 17 00:00:00 2001 From: dosangyoon Date: Sat, 16 Oct 2021 01:30:36 +0900 Subject: [PATCH] init --- hts/BS.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hts/BS.py b/hts/BS.py index 2624173..173b3e3 100644 --- a/hts/BS.py +++ b/hts/BS.py @@ -211,9 +211,11 @@ class BS: if data["rsi"][i] < 10: weight = 3 - if data["slow_k"][i] in (1, 2, 3, 4, 5, 6, 7): + if data["slow_k"][i] in (0, 1, 2, 3): + weight = 2.5 + if data["slow_k"][i] in (4, 5, 6, 7, 8): weight = 2 - elif data["slow_k"][i] in (8, 9, 10, 11, 12, 13): + elif data["slow_k"][i] in (9, 10, 11, 12, 13): weight = 1.5 elif data["slow_k"][i] in (14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25): weight = 1