Stock_Event_IndicatorChange
简述
功能:获取指定股票,在指定事件日前后事件效应指标变动
Stock_Event_IndicatorChange(N:Integer;M:Integer;IndicatorType: Integer;IndicatorCountType: Integer):Real;
| 名称 | 类型 | 说明 |
|---|
| N | Integer | 整型,事件日前天数 |
| M | Integer | 整型,事件日后天数 |
| IndicatorType | Integer | 整型,指标类型
|
显示名 |
取值 | |
收益率(%) |
0 | |
换手率(%) |
1 | |
成交量(手) |
2 | |
成交金额(万) |
3 |
|
| IndicatorCountType | Integer | 整型,指标计算类型
|
| 返回 | Real |
real,事件效应指标变动 |
//返回事件后10天日均换手率比时间前120天日均换手率
SetSysParam(pn_stock(),"SZ000001");
SetSysParam(pn_Date(),20230426T);
N:=120;
M:=10;
IndicatorType:=1;
IndicatorCountType:=1;
r:=Stock_Event_IndicatorChange(N,M,IndicatorType,IndicatorCountType);
return r; // 1.22703407