1

我在 ipython3 中尝试了以下代码。但我没有看到任何数字。有人可以让我知道如何使数字可见吗?谢谢。

import pandas as pd
apple_df = pd.read_csv('AAPL.csv', index_col=0, parse_dates=True)
dt_range = pd.date_range(start="2021-05-01", end="2020-05-31")
apple_df = apple_df[apple_df.index.isin(dt_range)]
apple_df.head()

import cufflinks as cf
qf=cf.QuantFig(apple_df,title='Apple Quant Figure',legend='top',name='GS')

qf.add_bollinger_bands(periods=20,boll_std=2,colors=['magenta','grey'],fill=True)
qf.add_sma([10,20],width=2,color=['green','lightgreen'],legendgroup=True)
qf.add_rsi(periods=20,color='java')

qf.iplot()

https://coderzcolumn.com/tutorials/data-science/candlestick-chart-in-python-mplfinance-plotly-bokeh

4

0 回答 0