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

Source-Commit: ecedf69b9c
This commit is contained in:
ci[bot]
2026-08-24 09:29:51 +08:00
parent 2f0d80da65
commit 2b74e1466d
664 changed files with 28934 additions and 37020 deletions
@@ -50,7 +50,7 @@ SetSysParam(pn_date(), 20180801t);
return ContinuedMatchOfNDay(@close(), 3);
```
## `correlOfNDay(exp_1, exp_2, n, cache_str)`
## `correlOfNDay(exp_1, exp_2, n[, cache_str])`
声明:function
@@ -58,12 +58,12 @@ return ContinuedMatchOfNDay(@close(), 3);
<!-- tags: 数据仓库 向导函数 N 日 -->
| 参数 | 类型 | 说明 |
| ----------- | ------ | ------------------- |
| `exp_1` | string | 字符串。统计表达式1 |
| `exp_2` | string | 字符串。统计表达式2 |
| `n` | int | 整数。天数 |
| `cache_str` | string | 字符串缓存串 |
| 参数 | 类型 | 说明 |
| ----------- | ------ | -------------------- |
| `exp_1` | string | 字符串。统计表达式1 |
| `exp_2` | string | 字符串。统计表达式2 |
| `n` | int | 整数。天数 |
| `cache_str` | string | 可选。字符串缓存串 |
返回:float
@@ -156,7 +156,7 @@ SetSysParam(pn_date(), 20231010T);
return CovOfNDay(@close(), 10, "SH000001");
```
## `decayAvgOfNDay(exp, n, cache_str)`
## `decayAvgOfNDay(exp, n[, cache_str])`
声明:function
@@ -164,11 +164,11 @@ N日线性衰减加权平均,与系统参数(股票,日期,周期,复权
<!-- tags: 数据仓库 向导函数 N 日 -->
| 参数 | 类型 | 说明 |
| ----------- | ------ | ------------------ |
| `exp` | string | 字符串。统计表达式 |
| `n` | int | 整数。天数 |
| `cache_str` | string | 字符串缓存串 |
| 参数 | 类型 | 说明 |
| ----------- | ------ | -------------------- |
| `exp` | string | 字符串。统计表达式 |
| `n` | int | 整数。天数 |
| `cache_str` | string | 可选。字符串缓存串 |
返回:float
@@ -285,7 +285,7 @@ SetSysParam(pn_date(), 20231010T);
return GrowthWithLowestOfNDay(@close(), 100, 0);
```
## `hhvBarsOfNDay(exp, n, cache_str)`
## `hhvBarsOfNDay(exp, n[, cache_str])`
声明:function
@@ -293,11 +293,11 @@ N日最高点到当前的周期数。N日表示市场交易日,当日最低为
<!-- tags: 数据仓库 向导函数 N 日 -->
| 参数 | 类型 | 说明 |
| ----------- | ------ | ------------------ |
| `exp` | string | 字符串。统计表达式 |
| `n` | int | 整数。天数 |
| `cache_str` | string | 字符串缓存串 |
| 参数 | 类型 | 说明 |
| ----------- | ------ | -------------------- |
| `exp` | string | 字符串。统计表达式 |
| `n` | int | 整数。天数 |
| `cache_str` | string | 可选。字符串缓存串 |
返回:int
@@ -414,7 +414,7 @@ SetSysParam(pn_date(), 20231010T);
return KurtosisOfNDay(@close(), 100);
```
## `llvBarsOfNDay(exp, n, cache_str)`
## `llvBarsOfNDay(exp, n[, cache_str])`
声明:function
@@ -422,11 +422,11 @@ N日最低点到当前的周期数。N日表示市场交易日,当日最低为
<!-- tags: 数据仓库 向导函数 N 日 -->
| 参数 | 类型 | 说明 |
| ----------- | ------ | ------------------ |
| `exp` | string | 字符串。统计表达式 |
| `n` | int | 整数。天数 |
| `cache_str` | string | 字符串缓存串 |
| 参数 | 类型 | 说明 |
| ----------- | ------ | -------------------- |
| `exp` | string | 字符串。统计表达式 |
| `n` | int | 整数。天数 |
| `cache_str` | string | 可选。字符串缓存串 |
返回:int
@@ -436,9 +436,7 @@ N日最低点到当前的周期数。N日表示市场交易日,当日最低为
```tsl
SetSysParam(pn_stock(), "SH600585");
SetSysParam(pn_date(), 20231030T);
return LLVBarsOfNDay(@close(), 10, "");
// 输出:4
```
@@ -518,7 +516,7 @@ SetSysParam(pn_date(), 20180801t);
return OccuredOfNDay(@close(), 10);
```
## `percentRankOfNDay(exp, n, cache_str)`
## `percentRankOfNDay(exp, n[, cache_str])`
声明:function
@@ -526,11 +524,11 @@ return OccuredOfNDay(@close(), 10);
<!-- tags: 数据仓库 向导函数 N 日 -->
| 参数 | 类型 | 说明 |
| ----------- | ------ | ------------------ |
| `exp` | string | 字符串。统计表达式 |
| `n` | int | 整数。天数 |
| `cache_str` | string | 字符串缓存串 |
| 参数 | 类型 | 说明 |
| ----------- | ------ | -------------------- |
| `exp` | string | 字符串。统计表达式 |
| `n` | int | 整数。天数 |
| `cache_str` | string | 可选。字符串缓存串 |
返回:float
@@ -544,7 +542,7 @@ SetSysParam(pn_date(), 20231030T);
return PercentRankOfNDay(@close(), 10, "");
```
## `productOfNDay(exp, n, cache_str)`
## `productOfNDay(exp, n[, cache_str])`
声明:function
@@ -552,11 +550,11 @@ return PercentRankOfNDay(@close(), 10, "");
<!-- tags: 数据仓库 向导函数 N 日 -->
| 参数 | 类型 | 说明 |
| ----------- | ------ | ------------------ |
| `exp` | string | 字符串。统计表达式 |
| `n` | int | 整数。天数 |
| `cache_str` | string | 字符串缓存串 |
| 参数 | 类型 | 说明 |
| ----------- | ------ | -------------------- |
| `exp` | string | 字符串。统计表达式 |
| `n` | int | 整数。天数 |
| `cache_str` | string | 可选。字符串缓存串 |
返回:float
@@ -590,7 +588,7 @@ return ProductOfNDay(@close(), 3, "");
范例01:调用函数
```tsl
返回上证指数在2018年7月18号的收盘价
// 返回上证指数在2018年7月18号的收盘价
SetSysParam(pn_stock(), 'SH000001');
SetSysParam(pn_date(), 20180801t);
return RefValue(@close(), 10);
@@ -850,7 +848,7 @@ return SumifofNday(@open(), 30, "@open()>@close()", "");
范例01:调用函数
```tsl
计算平安银行截止2018年8月1日最近10个交易日的成交量和
// 计算平安银行截止2018年8月1日最近10个交易日的成交量和
SetSysParam(pn_stock(), 'SZ000001');
SetSysParam(pn_date(), 20180801t);
return SumOfNDay(@vol(), 10);