Skip to content

Commit

Permalink
0.9.61 新增 yearly_days 参数支持
Browse files Browse the repository at this point in the history
  • Loading branch information
zengbin93 committed Nov 25, 2024
1 parent 1f3be8e commit 90cdbac
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion czsc/utils/st_components.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,13 @@ def show_weight_backtest(dfw, **kwargs):
st.dataframe(dfw[dfw.isnull().sum(axis=1) > 0], use_container_width=True)
st.stop()

wb = czsc.WeightBacktest(dfw, fee_rate=fee / 10000, digits=digits, n_jobs=kwargs.get("n_jobs", 1))
wb = czsc.WeightBacktest(
dfw,
fee_rate=fee / 10000,
digits=digits,
n_jobs=kwargs.get("n_jobs", 1),
yearly_days=yearly_days,
)
stat = wb.results["绩效评价"]

st.divider()
Expand Down

0 comments on commit 90cdbac

Please sign in to comment.