init
This commit is contained in:
@@ -595,7 +595,7 @@ class AnalyzerSqlite:
|
||||
c_index = 520
|
||||
if len(stock_daily['close']) < c_index:
|
||||
c_index = len(stock_daily['close'])
|
||||
location = stock_daily['close'][0] / max(stock_daily['close'][1:c_index])
|
||||
location = (max(stock_daily['close'][1:c_index]) - stock_daily['close'][0]) / max(stock_daily['close'][1:c_index])
|
||||
if location < 0.5:
|
||||
type = "daily_낙폭과대"
|
||||
final_status += " " + type
|
||||
@@ -980,9 +980,9 @@ if __name__ == "__main__":
|
||||
stockFileName = PROJECT_HOME + '/resources/stock.db'
|
||||
analyzer = AnalyzerSqlite(PROJECT_HOME, stockFileName)
|
||||
|
||||
analyzer.analyzeDaily()
|
||||
analyzer.analyzeGrouping("weekly")
|
||||
analyzer.analyzeGrouping("monthly")
|
||||
#analyzer.analyzeDaily()
|
||||
#analyzer.analyzeGrouping("weekly")
|
||||
#analyzer.analyzeGrouping("monthly")
|
||||
|
||||
# HTML 출력
|
||||
outPath = os.path.join(PROJECT_HOME, "resources", "analysis")
|
||||
|
||||
Reference in New Issue
Block a user