Skip to content

Commit

Permalink
fixed matplotlib performance 绘制时,当前收益率显示时未乘以100
Browse files Browse the repository at this point in the history
  • Loading branch information
fasiondog committed Apr 30, 2024
1 parent ff0094f commit 5ef1daf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hikyuu/draw/drawplot/matplotlib_draw.py
Original file line number Diff line number Diff line change
Expand Up @@ -791,7 +791,7 @@ def sys_performance(sys, ref_stk=None):
t1 = '投入总资产: {:<.2f} 当前总资产: {:<.2f} 当前盈利: {:<.2f}'.format(
invest_total, cur_fund, cur_fund - invest_total)
t2 = '当前策略收益: {:<.2f}% 年化收益率: {:<.2f}% 最大回撤: {:<.2f}%'.format(
funds_return[-1], per["帐户平均年收益率%"], max_pullback)
funds_return[-1]*100, per["帐户平均年收益率%"], max_pullback)
t3 = '系统胜率: {:<.2f}% 盈/亏比: 1 : {:<.2f} 夏普比率: {:<.2f}'.format(
per['赢利交易比例%'], per['净赢利/亏损比例'], sharp)

Expand Down

0 comments on commit 5ef1daf

Please sign in to comment.