FinancialItemIn12Month2
简述
最近12个月财务指标,与系统参数(证券代码)相关。如果指定报告期不存在时,则返回0。
FinancialItemIn12Month2(RDate:Integer;InfoID:Integer;InfoID2:Integer):Real
名称 | 类型 | 说明 |
---|
RDate | Integer | 整数。报告期 |
InfoID | Integer | 整数。基本面ID |
InfoID2 | Integer | 整数。基本面ID2 |
返回 | Real | 实数。最近12个月财务指标。 |
最近12个月= InfoID报告期+(InfoID2期初-InfoID2同比);
1季报(最近12个月)=InfoID1季报+InfoID2去年年报-InfoID2去年1季报;
中报(最近12个月)=InfoID中报+InfoID2去年年报-InfoID2去年中报;
3季报(最近12个月)=InfoID3季报+InfoID2去年年报-InfoID2去年3季报;
年报(最近12个月)=InfoID年报。
// "SZ000728"在20221231最近12个月的快报归母净利润季度数据
SetSysParam(pn_stock(),"SZ000728");
return FinancialItemIn12Month2(20221231,41006,46078);
//结果:1718290700