Added title to chart

This commit is contained in:
DJ Nieto
2021-04-16 08:05:02 -06:00
parent 612fb3d0ff
commit 166f601c90

View File

@@ -349,7 +349,8 @@ def show_candles(accountID, instrument, other_args: List[str]):
df = pd.read_csv(".candles.csv", index_col=0)
df.index = pd.to_datetime(df.index)
df.columns = ['Open', 'High', 'Low', 'Close', 'Volume']
mpf.plot(df, type="candle", style="charles", volume=True)
mpf.plot(df, type="candle", style="charles", volume=True,
title=f"{instrument} {ns_parser.granularity}")
except Exception as e:
print(e)
except NameError as e: