Files
playbook/skills/tsl-api-reference/references/codegen/dotnet/datawarehouse/wizard-legacy.md
T
csh 9010829c6d feat(tsl-api-reference): expand and reorganize api catalog
Flatten builtin pages, add third-party and platform scopes, and import financial and data warehouse references.

Keep the existing generated index without rebuilding after signature normalization.
2026-08-10 18:26:24 +08:00

47 lines
1.1 KiB
Markdown

# 数据仓库 / 向导函数 / 历史遗留
## `avgOfSectorExceptNoTrade(exp, mode)`
声明:function
返回当前板块当前时间存在交易股票指标Exp的平均值,其中Mode决定返回的平均类型,与系统参数(板块,日期,周期,复权)相关
| 参数 | 类型 | 说明 |
| ------ | ---- | -------------------- |
| `exp` | expr | 函数表达式 |
| `mode` | int | 用户自定义,平均模式 |
返回:float
### 示例
范例01:调用函数
```tsl
SetSysParam(pn_bk(), '安徽');
SetSysParam(pn_date(), 20180801t);
return AvgOfSectorExceptNoTrade(@close(), 0);
```
## `sumOfSectorExceptNoTrade(exp)`
声明:function
返回当前板块当前时间存在交易股票指标Exp的和,与系统参数(板块,日期,周期,复权)相关
| 参数 | 类型 | 说明 |
| ----- | ---- | ---------- |
| `exp` | expr | 函数表达式 |
返回:float
### 示例
范例01:调用函数
```tsl
SetSysParam(pn_bk(), '安徽');
SetSysParam(pn_date(), 20180801t);
return SumOfSectorExceptNoTrade(@close());
```