Files
playbook/skills/tsl-api-reference/references/codegen/dotnet/datawarehouse/wizard-n_quarter.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

6.6 KiB

数据仓库 / 向导函数 / N季

accOfNReport2(exp, report_id, n)

声明:function

N季加速度,与ACCOfNReport的区别在于仅支持季度数据计算,与系统证券相关

参数 类型 说明
exp expr 表达式类型,计算相关财务指标,一般与报告期相关,;如TTM归属母公司净利润为@Last12MData(DefaultRepID(),46078)
report_id datetime 报告期
n int 整数,最近N季

返回:float

示例

范例01:调用函数

setsysparam(pn_stock(), "SH600000");
Exp := @reportofall(9900002, GetSysParam('DefaultRepID'));
ReportID := 20211231;
N := 8;
return RobustACCOfNReport2(Exp, ReportID, N);   // -0.2568

avgOfNReport2(exp, report_id, n)

声明:function

N个季度报告期数据的平均值,与系统证券相关

参数 类型 说明
exp expr 表达式类型,计算相关财务指标,一般与报告期相关,;如TTM归属母公司净利润为@Last12MData(DefaultRepID(),46078)
report_id datetime 报告期
n int 整数,最近N季

返回:float

示例

范例01:调用函数

setsysparam(pn_stock(), "SH600000");
Exp := @reportofall(46002, GetSysParam('DefaultRepID'));
ReportID := 20211231;
N := 8;
return AvgOfNReport2(Exp, ReportID, N);   // 122912375000

robustACCOfNReport2(exp, report_id, n)

声明:function

N季稳健加速度,与RobustACCOfNReport的区别在于仅支持季度数据计算,与系统证券相关

参数 类型 说明
exp expr 表达式类型,计算相关财务指标,一般与报告期相关,;如TTM归属母公司净利润为@Last12MData(DefaultRepID(),46078)
report_id datetime 报告期
n int 整数,最近N季

返回:float

示例

范例01:调用函数

setsysparam(pn_stock(), "SH600000");
Exp := @reportofall(9900002, GetSysParam('DefaultRepID'));
ReportID := 20211231;
N := 8;
return RobustACCOfNReport2(Exp, ReportID, N);   // -0.2568

robustGrowthOfNReport2(exp, report_id, n)

声明:function

N季稳健增速,与RobustGrowthOfNReport的区别在于仅支持季度数据计算,与系统证券相关

参数 类型 说明
exp expr 表达式类型,计算相关财务指标,一般与报告期相关,;如TTM归属母公司净利润为@Last12MData(DefaultRepID(),46078)
report_id datetime 报告期
n int 整数,最近N季

返回:float

示例

范例01:调用函数

setsysparam(pn_stock(), "SH600000");
Exp := @reportofall(9900002, GetSysParam('DefaultRepID'));
ReportID := 20211231;
N := 8;
return RobustGrowthOfNReport2(Exp, ReportID, N); // -0.3269

stdOfNReport2(exp, report_id, n)

声明:function

N个季度报告期数据的标准差,与系统证券相关

参数 类型 说明
exp expr 表达式类型,计算相关财务指标,一般与报告期相关,;如TTM归属母公司净利润为@Last12MData(DefaultRepID(),46078)
report_id datetime 报告期
n int 整数,最近N季

返回:float

示例

范例01:调用函数

setsysparam(pn_stock(), "SH600000");
Exp := @reportofall(46002, GetSysParam('DefaultRepID'));
ReportID := 20211231;
N := 8;
return StdOfNReport2(Exp, ReportID, N);  // 56286669451.8528

sumOfNReport2(exp, report_id, n)

声明:function

N个季度报告期数据之和,与系统证券相关

参数 类型 说明
exp expr 表达式类型,计算相关财务指标,一般与报告期相关,;如TTM归属母公司净利润@Last12MData(DefaultRepID(),46078)
report_id datetime 报告期
n int 整数,最近N季

返回:float

示例

范例01:调用函数

setsysparam(pn_stock(), "SH600000");
Exp := @reportofall(46002, GetSysParam('DefaultRepID'));
ReportID := 20211231;
N := 8;
return SumOfNReport2(Exp, ReportID, N);  // 983299000000