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

Stock_EventEffect    

简述


  功能:快速获取指定股票,在指定日、指定时间窗窗口日的事件效应指标
定义
Stock_EventEffect(EventDay:Integer;IndexID:String;IndicatorType: Integer;IndicatorRelativeType: Integer;IndicatorCountType: Integer):Real;
参数
名称类型说明
EventDayInteger整型,事件窗窗口日
IndexIDString字符串,基准指数
IndicatorType Integer整型,指标类型
显示名 取值
收益率(%) 0
换手率(%) 1
成交量(手) 2
成交金额(万) 3
IndicatorRelativeType Integer整型,指标类型
显示名 取值
实际指标 0
基准指标 1
超额指标 2
IndicatorCountType Integer整型,指标计算类型
显示名 取值
累计指标 0
日均指标 1
返回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
      
相关