Improve historical price command from screener menu

This commit is contained in:
didier
2021-04-06 23:16:54 +01:00
parent b3d5ebc155
commit 3397f32048
2 changed files with 6 additions and 2 deletions

View File

@@ -58,7 +58,7 @@ class ScreenerController:
print("")
print(f"PRESET: {self.preset}")
print("")
print(" historical view historical price of stocks that meet preset")
print(" historical view historical price")
print(" overview overview information")
print(" valuation valuation information")
print(" financial financial information")

View File

@@ -158,7 +158,11 @@ def historical(other_args: List[str], preset_loaded: str):
for parsed_stock in l_parsed_stocks:
l_stocks.remove(parsed_stock)
plt.title(f"Screener Historical Price using {preset_loaded} preset")
if ns_parser.signal:
plt.title(f"Screener Historical Price using {finviz_view.d_signals[ns_parser.signal]} signal")
else:
plt.title(f"Screener Historical Price using {preset_loaded} preset")
plt.xlabel("Time")
plt.ylabel("Share Price ($)")
plt.legend(l_leg)