diff --git a/stockpredictor/analysis/Analyzer.py b/stockpredictor/analysis/Analyzer.py index c7d1670..3157d21 100644 --- a/stockpredictor/analysis/Analyzer.py +++ b/stockpredictor/analysis/Analyzer.py @@ -414,6 +414,11 @@ class Analyzer: fileName = "%s/p(%.2f)__b(%.2f)__s(%.2f)__%s__%s_%s.html" % (fileName, positionalEnergy, bolingerband_score, stochastic_score, state, item_name.replace(" ", ""), item_code) po.write_html(fig, file=fileName, auto_open=False) + if state != "": + fileName = self.outPath + fileName = "%s/%s__p(%.2f)__b(%.2f)__s(%.2f)__%s_%s.html" % (fileName, state, positionalEnergy, bolingerband_score, stochastic_score, item_name.replace(" ", ""), item_code) + po.write_html(fig, file=fileName, auto_open=False) + return def makeDirectory(self, outPath):