Skip to content

Commit

Permalink
0.9.61 WeightBacktest 支持多空分离的收益统计
Browse files Browse the repository at this point in the history
  • Loading branch information
zengbin93 committed Dec 5, 2024
1 parent 05bcf78 commit ab05729
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions czsc/traders/weight_backtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,10 @@ def __init__(self, dfw, digits=2, weight_type="ts", **kwargs) -> None:
:param digits: int, 权重列保留小数位数
:param weight_type: str, default 'ts',持仓权重类别,可选值包括:'ts'、'cs',分别表示时序策略、截面策略
ts 表示 time series,时序策略;
cs 表示 cross section,截面策略。
:param kwargs:
- fee_rate: float,单边交易成本,包括手续费与冲击成本, 默认为 0.0002
Expand Down

0 comments on commit ab05729

Please sign in to comment.