1
0

修复回测图像生成

This commit is contained in:
2026-01-27 21:51:48 +08:00
parent 5c4a70d7f0
commit 4e4bb1ab6e
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@@ -139,3 +139,4 @@ dmypy.json
.pyre/
.pytype/
cython_debug/
output

View File

@@ -293,7 +293,7 @@ def main():
# 生成图表
if args.output:
print(f"\n生成图表: {args.output}")
bt.plot(filename=args.output, show=False)
bt.plot(filename=args.output, open_browser=False)
print(f"图表已保存到: {args.output}")
print("\n回测完成!")