From 90cdbace290cfabbdbe985fe451d6270be558c83 Mon Sep 17 00:00:00 2001 From: zengbin93 Date: Mon, 25 Nov 2024 20:43:00 +0800 Subject: [PATCH] =?UTF-8?q?0.9.61=20=E6=96=B0=E5=A2=9E=20yearly=5Fdays=20?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- czsc/utils/st_components.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/czsc/utils/st_components.py b/czsc/utils/st_components.py index f7728d3f5..295638759 100644 --- a/czsc/utils/st_components.py +++ b/czsc/utils/st_components.py @@ -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()