feat(tsl-api-reference): index class and unit APIs

Migrate reference pages to declaration-line storage and rebuild the
13-column index.

Add qualified member lookup plus regression and end-to-end coverage.
This commit is contained in:
csh
2026-07-29 15:47:46 +08:00
parent 9edc8fc868
commit 13be5ea0aa
239 changed files with 39157 additions and 12846 deletions
@@ -2,6 +2,8 @@
## `continuedMatchOfNDay(exp, n)`
声明:function
判断Exp在过去N个交易日是否取得指标值,若取得返回1,否则返回0,与系统参数(股票,日期)相关。
| 参数 | 类型 | 说明 |
@@ -21,6 +23,8 @@ return ContinuedMatchOfNDay(@close(),3);
## `correlOfNDay(exp1, exp2, n, cache_str)`
声明:function
过去N日相关系数,其中N日表示市场交易日。注:剔除非交易日,例如求过去20天开盘价与成交量的相关系数,但是期间有10天停牌,则取非停牌日10天的相关系数。
| 参数 | 类型 | 说明 |
@@ -42,6 +46,8 @@ return CorrelOfNDay(@stockpjcj3(),@RefValue(@close(),5),10,"");
## `covarOfNDay(exp1, exp2, n, cache_str)`
声明:function
过去N日协方差。N日表示市场交易日。注:剔除非交易日,例如求过去20天开盘价与成交量的协方差,但是期间有10天停牌,则取非停牌日10天的协方差。
| 参数 | 类型 | 说明 |
@@ -63,6 +69,8 @@ return CovarOfNDay(@close(),@open(),30,"");
## `productOfNDay(exp, n, cache_str)`
声明:function
过去N日乘积。N日表示市场交易日。注:剔除非交易日(停牌或未上市)数据指标。
| 参数 | 类型 | 说明 |
@@ -83,6 +91,8 @@ return ProductOfNDay(@close(),3,"");
## `smaofNDay(exp, n, m, cache_str)`
声明:function
过去N日平滑移动平均。N日表示市场交易日。注:剔除非交易日(停牌或未上市)数据指标。
| 参数 | 类型 | 说明 |