Skip to content

Commit dbdfd55

Browse files
committed
Update readme
1 parent bb84700 commit dbdfd55

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ from pyindicators import ema, rsi
9090

9191
from investing_algorithm_framework import create_app, TimeUnit, Context, BacktestDateRange, \
9292
CCXTOHLCVMarketDataSource, CCXTTickerMarketDataSource, DEFAULT_LOGGING_CONFIG, \
93-
TradingStrategy, SnapshotInterval, convert_polars_to_pandas
93+
TradingStrategy, SnapshotInterval, convert_polars_to_pandas, BacktestReport
9494

9595
load_dotenv()
9696
logging.config.dictConfig(DEFAULT_LOGGING_CONFIG)
@@ -169,9 +169,10 @@ app.add_strategy(MyStrategy)
169169

170170
if __name__ == "__main__":
171171
# Run the backtest with a daily snapshot interval for end-of-day granular reporting
172-
backtest_report = app.run_backtest(
172+
backtest = app.run_backtest(
173173
backtest_date_range=date_range, initial_amount=100, snapshot_interval=SnapshotInterval.STRATEGY_ITERATION
174174
)
175+
backtest_report = BacktestReport(backtests=[backtest])
175176
backtest_report.show()
176177
```
177178

0 commit comments

Comments
 (0)