Files
playbook/skills/tsl-api-reference/references/codegen/dotnet/financial/index-valuation_trend_percentile.md
T

2.7 KiB

金融 / 指数 / 估值走势和百分位

getIndexValuePCT(index_id, begt, endt, cycle, right_type, sample_select, types, r_date_type, grid_no)

声明:function

返回指定日指数PE/PB/PCF/PMI(最近12个月)估值百分位

参数 类型 说明
index_id string 字符串。指数代码
begt datetime 日期。开始日
endt datetime 日期。截止日
cycle int 用户自定义。周期,取值如下:
right_type int 用户自定义。加权方式,取值如下:
sample_select int 用户自定义。样本股选择,取值如下:
types int 用户自定义。类型,取值如下:
r_date_type int 用户自定义。报告期类型,取值如下:
grid_no int 整数。网格数

返回:float

示例

范例01:结果:0.83

return GetIndexValuePCT('SH000300', 20180101T, 20181231T, '日', 0, 0, 0, 0, 5);
// 输出:0.83

tsFl_indexValuePCTSeries(index_id, begt, endt, cycle, n, right_type, sample_select, types, r_date_type, grid_no)

声明:function

返回研究指数PE/PB/PCF/PMI(最近12个月)序列、估值百分位与指数走势之间的关系

参数 类型 说明
index_id string 字符串。指数代码
begt datetime 日期。开始日
endt datetime 日期。截止日
cycle integer 用户自定义。周期,取值如下:
n integer 整数。过去N个交易日
right_type integer 用户自定义。加权方式,取值如下:
sample_select integer 用户自定义。样本股选择,取值如下:
types integer 用户自定义。类型,取值如下:
r_date_type integer 用户自定义。报告期类型,取值如下:
grid_no integer 整数。网格数

返回:array

示例

范例01:调用 TSFL_IndexValuePCTSeries

return TSFL_IndexValuePCTSeries('SH000300', 20180101T, 20181231T, '日', 30, 0, 0, 0, 0);