📦 deps(tsl): sync tsl-playbook from a71480a4

Source-Commit: a71480a4ae
This commit is contained in:
ci[bot]
2026-08-12 08:38:08 +08:00
parent 683f83d17c
commit 670ba950a6
1496 changed files with 292667 additions and 220122 deletions
@@ -0,0 +1,50 @@
# 数据仓库 / 向导函数 / 历史遗留
## `avgOfSectorExceptNoTrade(exp, mode)`
声明:function
返回当前板块当前时间存在交易股票指标Exp的平均值,其中Mode决定返回的平均类型,与系统参数(板块,日期,周期,复权)相关
<!-- tags: 数据仓库 向导函数 历史遗留 返回 获取 -->
| 参数 | 类型 | 说明 |
| ------ | ---- | -------------------- |
| `exp` | expr | 函数表达式 |
| `mode` | int | 用户自定义,平均模式 |
返回:float
### 示例
范例01:调用函数
```tsl
SetSysParam(pn_bk(), '安徽');
SetSysParam(pn_date(), 20180801t);
return AvgOfSectorExceptNoTrade(@close(), 0);
```
## `sumOfSectorExceptNoTrade(exp)`
声明:function
返回当前板块当前时间存在交易股票指标Exp的和,与系统参数(板块,日期,周期,复权)相关
<!-- tags: 数据仓库 向导函数 历史遗留 返回 获取 -->
| 参数 | 类型 | 说明 |
| ----- | ---- | ---------- |
| `exp` | expr | 函数表达式 |
返回:float
### 示例
范例01:调用函数
```tsl
SetSysParam(pn_bk(), '安徽');
SetSysParam(pn_date(), 20180801t);
return SumOfSectorExceptNoTrade(@close());
```