Files
playbook/skills/tsl-api-reference/references/codegen/module/recent-updates-33752.md
T

183 lines
4.8 KiB
Markdown

# 应用专题 / 因子研究 / 因子模型
## `stock_mom_cthlFactor(end_t, ndays)`
声明:function
CTHL 指标
<!-- tags: 因子分析 因子指标 证券 个股 因子 股票 -->
| 参数 | 类型 | 说明 |
| ------- | -------- | ----------------- |
| `end_t` | datetime | TDateTime,截止日 |
| `ndays` | integer | int,天数 |
返回:any
## `stock_mom_ctoFactor(end_t, ndays)`
声明:function
CTO 指标
<!-- tags: 因子分析 因子指标 证券 个股 因子 股票 -->
| 参数 | 类型 | 说明 |
| ------- | -------- | ----------------- |
| `end_t` | datetime | TDateTime,截止日 |
| `ndays` | integer | int,天数 |
返回:any
## `stock_mom_hpFactor(end_t, ndays)`
声明:function
最高价格指标
<!-- tags: 因子分析 因子指标 证券 个股 价格数据 行情 因子 股票 -->
| 参数 | 类型 | 说明 |
| ------- | -------- | ----------------- |
| `end_t` | datetime | TDateTime,截止日 |
| `ndays` | integer | int,天数 |
返回:any
## `stock_mom_htFactor(end_t, ndays)`
声明:function
最高价格时间指标
<!-- tags: 因子分析 因子指标 证券 个股 价格数据 行情 时间处理 日期时间 -->
| 参数 | 类型 | 说明 |
| ------- | -------- | ----------------- |
| `end_t` | datetime | TDateTime,截止日 |
| `ndays` | integer | int,天数 |
返回:any
## `stock_mom_lpFactor(end_t, ndays)`
声明:function
最低价格指标
<!-- tags: 因子分析 因子指标 证券 个股 价格数据 行情 因子 股票 -->
| 参数 | 类型 | 说明 |
| ------- | -------- | ----------------- |
| `end_t` | datetime | TDateTime,截止日 |
| `ndays` | integer | int,天数 |
返回:any
## `stock_mom_ltFactor(end_t, ndays)`
声明:function
最低价格时间指标
<!-- tags: 因子分析 因子指标 证券 个股 价格数据 行情 时间处理 日期时间 -->
| 参数 | 类型 | 说明 |
| ------- | -------- | ----------------- |
| `end_t` | datetime | TDateTime,截止日 |
| `ndays` | integer | int,天数 |
返回:any
## `stock_mom_pathLenFactor(end_t, ndays)`
声明:function
PathLen 指标
<!-- tags: 因子分析 因子指标 证券 个股 因子 股票 -->
| 参数 | 类型 | 说明 |
| ------- | -------- | ----------------- |
| `end_t` | datetime | TDateTime,截止日 |
| `ndays` | integer | int,天数 |
返回:any
## `stock_mom_priceGrowthFactor(end_t, ndays)`
声明:function
股价增速指标
<!-- tags: 因子分析 因子指标 证券 个股 价格数据 行情 因子 股票 -->
| 参数 | 类型 | 说明 |
| ------- | -------- | ----------------- |
| `end_t` | datetime | TDateTime,截止日 |
| `ndays` | integer | int,天数 |
返回:any
## `stock_mom_rankStdFactor(end_t, ndays)`
声明:function
RankStd 指标
<!-- tags: 排名 排序 因子分析 因子指标 证券 个股 因子 股票 -->
| 参数 | 类型 | 说明 |
| ------- | -------- | ----------------- |
| `end_t` | datetime | TDateTime,截止日 |
| `ndays` | integer | int,天数 |
返回:any
## `stock_mom_residualMomFactor(end_t)`
声明:function
残差动量指标
<!-- tags: 因子分析 因子指标 证券 个股 因子 股票 -->
| 参数 | 类型 | 说明 |
| ------- | -------- | ----------------- |
| `end_t` | datetime | TDateTime,截止日 |
返回:any
## `stock_mom_slopeFactor(end_t, ndays)`
声明:function
Slope 指标
<!-- tags: 因子分析 因子指标 证券 个股 因子 股票 -->
| 参数 | 类型 | 说明 |
| ------- | -------- | ----------------- |
| `end_t` | datetime | TDateTime,截止日 |
| `ndays` | integer | int,天数 |
返回:any
## `stock_pv_trend(norm_type, num, ma_type, n)`
声明:function
执行 `stock_PV_Trend` 对应的模块功能
<!-- tags: 调用 证券 个股 因子 股票 -->
| 参数 | 类型 | 说明 |
| ----------- | ------- | ---------------------------------------------------------------------------------------- |
| `norm_type` | any | 用户自定义,指标类型 取值 含义 备注 0 价格趋势指标 1 量价趋势指标 |
| `num` | integer | 整数,回归次数 |
| `ma_type` | any | 用户自定义,移动平均类型 取值 含义 备注 0 简单移动平均 1 加权移动平均平均 2 指数移动平均 |
| `n` | real | 实数,移动平均权重,仅当 MaType 取值为 1,2 时有用 |
返回:any