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