This commit is contained in:
dsyoon
2021-10-18 18:48:53 +09:00
parent 3d874553e8
commit 79314b9a82
3 changed files with 391 additions and 8 deletions

View File

@@ -217,11 +217,11 @@ class BuySellChecker:
### STOCHASTIC weight 분석 ###
#############################
if data["slow_k"][i] in (0, 1, 2, 3):
weight = 3
weight = 1
if data["slow_k"][i] in (4, 5, 6, 7, 8):
weight = 2
weight = 1
elif data["slow_k"][i] in (9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20):
weight = 1.5
weight = 1
elif data["slow_k"][i] in (21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35):
weight = 1
@@ -233,7 +233,7 @@ class BuySellChecker:
buy = data["Close"][i]
else:
buy = data["Low"][i]
weight = 3
weight = 2
return buy, weight, sell