天软金融分析.NET函数大全 > 金融函数 > 金融工程 > 量化套利 > 事件套利 > 事件因子

Stock_Event_IndicatorChange    

简述


  功能:获取指定股票,在指定事件日前后事件效应指标变动
定义
Stock_Event_IndicatorChange(N:Integer;M:Integer;IndicatorType: Integer;IndicatorCountType: Integer):Real;
参数
名称类型说明
NInteger整型,事件日前天数
MInteger整型,事件日后天数
IndicatorType Integer整型,指标类型
显示名 取值
收益率(%) 0
换手率(%) 1
成交量(手) 2
成交金额(万) 3
IndicatorCountType Integer整型,指标计算类型
显示名 取值
累计指标 0
指标 1
返回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
      
相关