📦 deps(tsl): sync tsl-playbook from 9dbd156d

Source-Commit: 9dbd156d0e
This commit is contained in:
ci[bot]
2026-07-07 08:44:07 +00:00
commit a2d9174549
524 changed files with 393502 additions and 0 deletions
@@ -0,0 +1,76 @@
# 行情 / 其他
## `ES_BarginValue(event_date, index_id, date_type, number_of_days, return_type)`
事件前后N日交易数据,与系统证券pn_stock()有关。
| 参数 | 类型 | 说明 |
| ---------------- | -------- | ---------------------- |
| `event_date` | datetime | 日期类型,事件发生日 |
| `index_id` | string | 指数代码 |
| `date_type` | any | 整数类型,天数类型 |
| `number_of_days` | any | 整数类型,推移天数 |
| `return_type` | any | 整数类型,返回数据类型 |
返回:float
## `RD_Submit_BAAvgVolRC(bs_type, n, option)`
加权委托量变化率(%)
| 参数 | 类型 | 说明 |
| --------- | ---- | --------------------------------------- |
| `bs_type` | any | 用户自定义,买卖类型,默认为0,取值如下: |
| `n` | any | 整数,前N档位。-1:表全部;1~5:前N档 |
| `option` | any | 用户自定义,加权方式,默认为0,取值如下: |
返回:float
## `RD_Submit_BALJVolRC(bs_type, n)`
累计委托量变化率(%)
| 参数 | 类型 | 说明 |
| --------- | ---- | --------------------------------------- |
| `bs_type` | any | 用户自定义,买卖类型,默认为0,取值如下: |
| `n` | any | 整数,前N档位。-1:表全部;1~5:前N档 |
返回:float
## `stockMaxRateDown2(n)`
N日最大跌幅(%)(已复权)
| 参数 | 类型 | 说明 |
| ---- | ---- | -------------- |
| `n` | int | 整数,交易周期 |
返回:float
### 示例
```tsl
SetSysParam(pn_stock(),'SZ000002');
SetSysParam(pn_cycle(),cy_day());
SetSysParam(pn_date(),inttodate(20120419));
return StockMaxRateDown2(5);
```
## `stockMaxRateUp2(n)`
N日最大涨幅(%)(已复权)
| 参数 | 类型 | 说明 |
| ---- | ---- | -------------- |
| `n` | int | 整数,交易周期 |
返回:float
### 示例
```tsl
SetSysParam(pn_stock(),'SZ000002');
SetSysParam(pn_cycle(),cy_day());
SetSysParam(pn_date(),inttodate(20120419));
return StockMaxRateUp2(5);
```