ezyquant.report.SETBacktestReport#
- class ezyquant.report.SETBacktestReport(initial_capital: float, pct_commission: float, pct_buy_slip: float, pct_sell_slip: float, cash_series: Series, position_df: DataFrame, trade_df: DataFrame)#
SETBacktestReport.
- Parameters:
initial_capital (float) – initial capital.
pct_commission (float) – percent commission.
pct_buy_slip (float) – percent of buy price increase.
pct_sell_slip (float) – percent of sell price decrease.
cash_series (pd.Series) – series of cash.
position_df (pd.DataFrame) –
- dataframe of position.
timestamp
symbol
volume
cost_price
trade_df (pd.DataFrame) –
- dataframe of trade.
matched_at
symbol
volume
price
pct_commission
SETBacktestReport.to_basic
([with_dividend, ...])Calculate performance metrics and generate visualizations for a given strategy.
Export to Excel.
SETBacktestReport.to_full
([with_dividend, ...])Calculate performance metrics and generate visualizations for a given strategy.
SETBacktestReport.to_html
([with_dividend, ...])Generates an HTML tearsheet for strategy performance analysis.
Generates a snapshot plot of portfolio performance.
Calculates the communicative annualized growth return (CAGR%) of access returns.
Calculates the calmar ratio (CAGR% / MaxDD%)
Cumulative Return DataFrame.
Dividend DataFrame.
Drawdown Percent DataFrame.
End date.
Monthly Return DataFrame.
Percent buy slip.
Percent commission.
Calculates the maximum drawdown.
Percent sell slip.
SETPosition DataFrame.
Price Distribution DataFrame.
Start date.
Stat DataFrame.
Calculates the volatility of returns for a period.
Summary DataFrame.
Summary Trade DataFrame.
Trade DataFrame.