tearsheetΒΆ

Defined in fynance.plot

tearsheet(result, period=252, figsize=(11, 7))[source]

Build a full performance report figure.

Composes the equity curve, drawdown, rolling Sharpe, return distribution and a metrics table into one matplotlib Figure (works headless, embeds in a notebook or a Streamlit app).

Parameters:
resultBacktestResult, PriceSeries or array-like

The strategy result (or an equity curve).

periodint

Annualization factor.

figsizetuple

Figure size.

Returns:
matplotlib.figure.Figure