This commit is contained in:
dsyoon
2023-02-12 00:28:13 +09:00
parent 4010d1cc78
commit 426ca43ff7
5 changed files with 81 additions and 22 deletions

View File

@@ -1110,7 +1110,7 @@ class BuySellChecker:
data['buy'][i] = buy
bsLine['buy'][i] = buy
bsLine['buy_weight'][i] = 5.0
"""
check = True
for l in range(i - 3, i):
if (
@@ -1129,6 +1129,7 @@ class BuySellChecker:
data['buy'][i] = buy
bsLine['buy'][i] = buy
bsLine['buy_weight'][i] = 5.0
"""
if (data['disparity'][i] < 5 and 99.0 < data['disparity_avg60'][i] < 99.1 and
-0.009 < data['gradients_avg60'][i] < -0.008 and 0.015 < data['gradients_avg20'][i] < 0.016 and
@@ -1195,6 +1196,23 @@ class BuySellChecker:
bsLine['buy'][i] = buy
bsLine['buy_weight'][i] = 10.0
if data['slow_k'][i] > 90:
if (data['slow_d'][i-1] < data['slow_k'][i-1] and data['slow_k'][i] < data['slow_d'][i]):
sell = data['low'][i]
weight = 100
data['sell'][i] = sell
bsLine['sell'][i] = sell
bsLine['sell_weight'][i] = weight
if data['slow_k'][i] > 95:
if data['slow_k'][i] < data['slow_d'][i]:
sell = data['low'][i]
weight = 100
data['sell'][i] = sell
bsLine['sell'][i] = sell
bsLine['sell_weight'][i] = weight
return bsLine, data
def checkTransactionWithEnvelope(self, data, stock_code, analyzed_day, isRealTime=False):