init
This commit is contained in:
@@ -633,10 +633,15 @@ class AnalyzerSqlite:
|
|||||||
|
|
||||||
if len(stock_daily['volume']) > 5:
|
if len(stock_daily['volume']) > 5:
|
||||||
# BB 하단에 부딪힘
|
# BB 하단에 부딪힘
|
||||||
for c_index in range(1, 3):
|
for c_index in range(3):
|
||||||
if stock_daily['envelope_lower'][c_index+1] is None:
|
if stock_daily['envelope_lower'][c_index+1] is None:
|
||||||
break
|
break
|
||||||
if stock_daily['close'][c_index] <= (stock_daily['envelope_lower'][c_index+1]):
|
if (
|
||||||
|
stock_daily['macds'][c_index] < stock_daily['macd'][c_index] and
|
||||||
|
(stock_daily['close'][c_index+1] < stock_daily['envelope_lower'][c_index+1] or
|
||||||
|
stock_daily['close'][c_index+2] < stock_daily['envelope_lower'][c_index+2] or
|
||||||
|
stock_daily['close'][c_index+3] < stock_daily['envelope_lower'][c_index+3])
|
||||||
|
):
|
||||||
dir_code = "26"
|
dir_code = "26"
|
||||||
dir_name = "daily_EV하단_내려옴"
|
dir_name = "daily_EV하단_내려옴"
|
||||||
final_status_count += 1
|
final_status_count += 1
|
||||||
@@ -1033,9 +1038,11 @@ if __name__ == "__main__":
|
|||||||
stockFileName = os.path.join(RESOURCE_PATH, 'stock.db')
|
stockFileName = os.path.join(RESOURCE_PATH, 'stock.db')
|
||||||
analyzer = AnalyzerSqlite(stockFileName)
|
analyzer = AnalyzerSqlite(stockFileName)
|
||||||
|
|
||||||
#analyzer.analyzeDaily()
|
"""
|
||||||
#analyzer.analyzeGrouping("weekly")
|
analyzer.analyzeDaily()
|
||||||
#analyzer.analyzeGrouping("monthly")
|
analyzer.analyzeGrouping("weekly")
|
||||||
|
analyzer.analyzeGrouping("monthly")
|
||||||
|
"""
|
||||||
|
|
||||||
# HTML 출력
|
# HTML 출력
|
||||||
outPath = os.path.join(PROJECT_HOME, "resources", "analysis")
|
outPath = os.path.join(PROJECT_HOME, "resources", "analysis")
|
||||||
@@ -1057,7 +1064,7 @@ if __name__ == "__main__":
|
|||||||
print("print to Html...")
|
print("print to Html...")
|
||||||
analyzer.findCandidate(outPath)
|
analyzer.findCandidate(outPath)
|
||||||
|
|
||||||
print("time : %6.2f 초" % (time.time() - start))
|
|
||||||
|
|
||||||
|
print("time : %6.2f 초" % (time.time() - start))
|
||||||
print("done...")
|
print("done...")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user