Skip to content

Commit

Permalink
📃 docs: error in doc
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-yang-biz committed Apr 20, 2024
1 parent 862eef1 commit 5eeccd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ start = datetime.date(2022, 1, 4)
end = datetime.date(2023, 1,1)

sma = SMAStrategy(sec, url=cfg.backtest.url, is_backtest=True, start=start, end=end, frame_type=FrameType.DAY, warmup_period=10)
await sma.backtest(portfolio=[sec], stop_on_error=False)
await sma.backtest(prefetch_stocks=[sec], stop_on_error=False)
await sma.plot_metrics(sma.indicators)

```
Expand Down

0 comments on commit 5eeccd4

Please sign in to comment.