|
22 | 22 | PandasOHLCVBacktestMarketDataSource, PandasOHLCVMarketDataSource
|
23 | 23 | from .create_app import create_app
|
24 | 24 | from .download_data import download
|
25 |
| -from .overfitting import create_ohlcv_shuffle_permutation, \ |
| 25 | +from .reporting import create_ohlcv_shuffle_permutation, \ |
26 | 26 | create_ohlcv_shuffle_returns_and_reconstruct_permutation, \
|
27 | 27 | create_ohlcv_shuffle_block_permutation
|
28 |
| -from .metrics import get_volatility, get_sortino_ratio, get_profit_factor, \ |
| 28 | +from .metrics import get_annual_volatility, get_sortino_ratio, get_profit_factor, \ |
29 | 29 | get_cumulative_profit_factor_series, get_rolling_profit_factor_series, \
|
30 | 30 | get_sharpe_ratio, get_price_efficiency_ratio, get_equity_curve, \
|
31 | 31 | get_drawdown_series, get_max_drawdown, get_cagr, \
|
32 | 32 | get_standard_deviation_returns, get_standard_deviation_downside_returns, \
|
33 |
| - get_max_drawdown_absolute, get_exposure_time, get_average_trade_duration, \ |
34 |
| - get_net_profit, get_win_rate, get_win_loss_ratio, get_calmar_ratio, \ |
35 |
| - get_trade_frequency |
| 33 | + get_max_drawdown_absolute, get_exposure, get_average_trade_duration, \ |
| 34 | + get_win_rate, get_win_loss_ratio, get_calmar_ratio, \ |
| 35 | + get_trade_frequency, get_total_return, get_max_drawdown_duration, \ |
| 36 | + get_max_daily_drawdown, get_trades_per_day, get_trades_per_year, \ |
| 37 | + get_percentage_winning_months, get_worst_month, get_worst_trade, \ |
| 38 | + get_best_trade, get_best_month, get_best_year, get_average_loss, \ |
| 39 | + get_average_gain, get_average_yearly_return, get_yearly_returns, \ |
| 40 | + get_monthly_returns, get_average_monthly_return, get_worst_year, \ |
| 41 | + get_best_trade_date, get_worst_trade_date, get_percentage_winning_years, \ |
| 42 | + get_average_monthly_return_losing_months, get_rolling_sharpe_ratio, \ |
| 43 | + get_average_monthly_return_winning_months |
| 44 | +from .reporting import generate_backtest_report |
| 45 | + |
36 | 46 |
|
37 | 47 | __all__ = [
|
38 | 48 | "Algorithm",
|
|
111 | 121 | "create_ohlcv_shuffle_block_permutation",
|
112 | 122 | "PandasOHLCVBacktestMarketDataSource",
|
113 | 123 | "PandasOHLCVMarketDataSource",
|
114 |
| - "get_volatility", |
| 124 | + "get_annual_volatility", |
115 | 125 | "get_sortino_ratio",
|
116 | 126 | "get_cagr",
|
117 | 127 | "get_standard_deviation_returns",
|
118 | 128 | "get_standard_deviation_downside_returns",
|
119 | 129 | "SnapshotInterval",
|
120 | 130 | "get_max_drawdown_absolute",
|
121 |
| - "get_exposure_time", |
| 131 | + "get_exposure", |
122 | 132 | "get_average_trade_duration",
|
123 |
| - "get_net_profit", |
| 133 | + "get_total_return", |
124 | 134 | "get_win_rate",
|
125 | 135 | "get_win_loss_ratio",
|
126 | 136 | "get_calmar_ratio",
|
127 | 137 | "get_trade_frequency",
|
| 138 | + "get_max_drawdown_duration", |
| 139 | + "get_max_daily_drawdown", |
| 140 | + "get_trades_per_day", |
| 141 | + "get_trades_per_year", |
| 142 | + "get_percentage_winning_months", |
| 143 | + "get_worst_month", |
| 144 | + "get_worst_trade", |
| 145 | + "get_best_trade", |
| 146 | + "get_best_month", |
| 147 | + "get_best_year", |
| 148 | + "get_worst_year", |
| 149 | + "get_average_loss", |
| 150 | + "get_average_gain", |
| 151 | + "get_average_yearly_return", |
| 152 | + "get_yearly_returns", |
| 153 | + "get_monthly_returns", |
| 154 | + "get_average_monthly_return", |
| 155 | + "get_best_trade_date", |
| 156 | + "get_worst_trade_date", |
| 157 | + "get_percentage_winning_years", |
| 158 | + "get_average_monthly_return_losing_months", |
| 159 | + "get_average_monthly_return_winning_months", |
| 160 | + "get_rolling_sharpe_ratio", |
| 161 | + "generate_backtest_report" |
128 | 162 | ]
|
0 commit comments