Stock_EventEffect
简述
功能:快速获取指定股票,在指定日、指定时间窗窗口日的事件效应指标
Stock_EventEffect(EventDay:Integer;IndexID:String;IndicatorType: Integer;IndicatorRelativeType: Integer;IndicatorCountType: Integer):Real;
名称 | 类型 | 说明 |
---|
EventDay | Integer | 整型,事件窗窗口日 |
IndexID | String | 字符串,基准指数 |
IndicatorType | Integer | 整型,指标类型
显示名 |
取值 |
收益率(%) |
0 |
换手率(%) |
1 |
成交量(手) |
2 |
成交金额(万) |
3 |
|
IndicatorRelativeType | Integer | 整型,指标类型
显示名 |
取值 |
实际指标 |
0 |
基准指标 |
1 |
超额指标 |
2 |
|
IndicatorCountType | Integer | 整型,指标计算类型
|
返回 | Real |
real,事件效应指标 |
//返回事件窗口日为3,基准指数为沪深300的累计超额收益率
SetSysParam(pn_stock(),"SZ000001");
SetSysParam(pn_Date(),20230426T);
EventDay:=3;
IndexID:="SH000300";
IndicatorType:=0;
IndicatorRelativeType:=2;
IndicatorRelativeType:=0;
r:=Stock_EventEffect(EventDay,IndexID,IndicatorType,IndicatorRelativeType,IndicatorCountType);
return r; // 3.66449511