Skip to main content

Charts

Plot strategy behaviour with a single function call. Quantalytics uses Plotly, so charts are interactive in notebooks and export cleanly to HTML. Examples below assume:

import quantalytics as qa

Cumulative Returns

fig = qa.charts.cumulative_returns_chart(returns, benchmark=benchmark_returns)
fig.show()

Rolling Volatility

fig = qa.charts.rolling_volatility_chart(returns, window=63)

Drawdowns

fig = qa.charts.drawdown_chart(returns)

All chart helpers return plotly.graph_objects.Figure objects, letting you further customize layout and styling.