TurnPositiveOfNReport
简述
N期转正拐点:最近N期中,前N-1期数据小于0,第N期数据大于0
TurnPositiveOfNReport(Exp:TExpression;ReportID:RDate;N:int;ReportType:int):Bool
名称 | 类型 | 说明 |
---|
Exp | TExpression | 表达式类型,计算相关财务指标,一般与报告期相关,如TTM归属母公司净利润:@Last12MData(DefaultRepID(),46078) |
ReportID | RDate | 报告期 |
N | int | 整数,最近N期 |
ReportType | int | 报告期类型
取值 |
含义 |
备注 |
0 |
年度标准(默认) |
假设ReportID:=20200930,N=2,对应最近N个报告期为20190930、20200930 |
1 |
季度标准 |
假设ReportID:=20200930,N=2,对应最近N个报告期为20200630、20200930 |
|
返回 | Bool | Bool,0 or 1 |
setsysparam(pn_stock(),"SH600110");
Exp:=@LastQuarterData(GetSysParam('DefaultRepID'),42017); //季度扣非净利润
ReportID:=20210331;
N:=5;
ReportType:=1; //0:年度,1:季度
t:=TurnPositiveOfNReport(Exp,ReportID,N,ReportType);
return t; //1