init
This commit is contained in:
@@ -425,10 +425,7 @@ class Analyzer:
|
|||||||
else:
|
else:
|
||||||
bolingerband_score = round(((STOCK[last_index]['close']-BOLINGERBAND[last_index]['lower'])/(BOLINGERBAND[last_index]['upper']-BOLINGERBAND[last_index]['lower'])), 2)
|
bolingerband_score = round(((STOCK[last_index]['close']-BOLINGERBAND[last_index]['lower'])/(BOLINGERBAND[last_index]['upper']-BOLINGERBAND[last_index]['lower'])), 2)
|
||||||
|
|
||||||
if item_code == "108230":
|
if stochastic_score < 10 or bolingerband_score < 0.2:
|
||||||
print (1)
|
|
||||||
|
|
||||||
if stochastic_score < 50 and bolingerband_score < 0.4:
|
|
||||||
|
|
||||||
# 종목 상태 체크 분석
|
# 종목 상태 체크 분석
|
||||||
state, buy_price = self.analyzeFinalScore(last_index, STOCK, STOCHASTIC)
|
state, buy_price = self.analyzeFinalScore(last_index, STOCK, STOCHASTIC)
|
||||||
|
|||||||
@@ -536,7 +536,7 @@ class Common:
|
|||||||
|
|
||||||
if top - bottom > 0:
|
if top - bottom > 0:
|
||||||
energy = (price - bottom) / (top - bottom)
|
energy = (price - bottom) / (top - bottom)
|
||||||
if energy < 0.4:
|
if energy < 0.2:
|
||||||
return "p(" + str(round(energy, 2)) + ")_"
|
return "p(" + str(round(energy, 2)) + ")_"
|
||||||
return ""
|
return ""
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user