From 4e4bb1ab6e3c9abcd4a197c4410f325e698b4e72 Mon Sep 17 00:00:00 2001 From: lanyuanxiaoyao Date: Tue, 27 Jan 2026 21:51:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9B=9E=E6=B5=8B=E5=9B=BE?= =?UTF-8?q?=E5=83=8F=E7=94=9F=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + backtest.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 62f54d6..796c2b0 100644 --- a/.gitignore +++ b/.gitignore @@ -139,3 +139,4 @@ dmypy.json .pyre/ .pytype/ cython_debug/ +output \ No newline at end of file diff --git a/backtest.py b/backtest.py index 7d01d95..c205cb8 100644 --- a/backtest.py +++ b/backtest.py @@ -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回测完成!")