ET_Zf_Ratio
简述
计算事件发生前后股票收益率变化
ET_Zf_Ratio(N:Integer;M:Integer;cType: Integer):Real;
| 名称 | 类型 | 说明 |
|---|
| N | Integer | 整型,T0-N日 |
| M | Integer | 整型,T0+M日 |
| cType | Integer | 整型,收益率类型
|
| 返回 | Real |
real,T0+M日比T0-N日收益率 |
SetSysParam(pn_stock(),"SZ000001");
SetSysParam(pn_Date(),20230426T);
N:=120; M:=10; cType:=0;
r:=ET_Zf_Ratio(N,M,cType);
return r;
//0.25091065