This commit is contained in:
dosangyoon
2021-10-17 00:36:44 +09:00
parent 8bcb2beeed
commit 7cf8b77580
3 changed files with 33 additions and 11 deletions

View File

@@ -411,7 +411,7 @@ class Analyzer:
fileName = "%s/%d__s(%.2f)__b(%.2f)__p(%.2f)__%s__%d__%s_%s.html" % (fileName, isbuy, stochastic_score, bolingerband_score, positionalEnergy, state, buy_price, item_name.replace(" ", ""), item_code)
po.write_html(fig, file=fileName, auto_open=False)
if positionalEnergy < 0.15:
if positionalEnergy < 0.5:
fileName = self.positionalEnergy_path
fileName = "%s/%d__p(%.2f)__b(%.2f)__s(%.2f)__%s__%d__%s_%s.html" % (fileName, isbuy, positionalEnergy, bolingerband_score, stochastic_score, state, buy_price, item_name.replace(" ", ""), item_code)
po.write_html(fig, file=fileName, auto_open=False)
@@ -518,7 +518,7 @@ class Analyzer:
isbuy = 0
# 스토케스틱이 20이하이어야 하며, 볼린저밴드 0.3 보다 작으며, 위치에너지도 0.2보다 낮다면,
if stochastic_score < 30 and bolingerband_score < 0.3 and positionalEnergy < 0.6:
if stochastic_score < 30 and bolingerband_score < 0.3 and positionalEnergy < 0.5:
isbuy = 1
# 위치에너지가 낮거나 240일선 아래에 있는 상태에서 상태값을 갖는 경우 매수한다.