修复回测图像生成
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -139,3 +139,4 @@ dmypy.json
|
|||||||
.pyre/
|
.pyre/
|
||||||
.pytype/
|
.pytype/
|
||||||
cython_debug/
|
cython_debug/
|
||||||
|
output
|
||||||
@@ -293,7 +293,7 @@ def main():
|
|||||||
# 生成图表
|
# 生成图表
|
||||||
if args.output:
|
if args.output:
|
||||||
print(f"\n生成图表: {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(f"图表已保存到: {args.output}")
|
||||||
|
|
||||||
print("\n回测完成!")
|
print("\n回测完成!")
|
||||||
|
|||||||
Reference in New Issue
Block a user