Files
playbook/skills/tsl-api-reference/references/codegen/dotnet/financial/stock-composite_indicators-peg.md
T
csh 9010829c6d feat(tsl-api-reference): expand and reorganize api catalog
Flatten builtin pages, add third-party and platform scopes, and import financial and data warehouse references.

Keep the existing generated index without rebuilding after signature normalization.
2026-08-10 18:26:24 +08:00

898 B

金融 / 股票 / 综合指标 / PEG

stockPeG_iii(end_t, n, data_type)

声明:function

指定日PEG(最近12个月加权),与当前股票pn_stock(),当前时间pn_date()相关

参数 类型 说明
end_t datetime 日期类型,截止日期;
n integer 用户自定义类型,增长率标准;
data_type integer 整数类型,类型;

返回:float

示例

范例01:SZ300296 利亚德以前年为增长率标准,2018年8月22日的PEG(最近12个月加权)

// SZ300296 利亚德以前年为增长率标准,2018年8月22日的PEG(最近12个月加权)。

setsysparam(pn_stock(), "SZ300296");

setsysparam(pn_date(), 20181011T);

return StockPEG_III(20180822T, 2, 0);
// 输出:9.52957