FamaFrench_FactorRet_FixedInterval
简述
计算三四五因子区间固定间隔收益率(%),与参数M设置相关
FamaFrench_FactorRet_FixedInterval(BegT:Date;EndT:Date;ModelType:Integer;WeightType:Integer;M:Integer;Modelflag:Integer):Array;
| 名称 | 类型 | 说明 |
|---|
| BegT | Date | 开始日,日期类型 |
| EndT | Date | 截止日,日期类型 |
| ModelType | Integer | 计算模型,整型,取值如下
|
取值 |
含义 |
返回因子 | |
1 |
三因子 |
SMB、HML | |
2 |
四因子 |
SMB、HML、MOM | |
3 |
五因子 |
SMB、HML、RMW、CMA |
|
| WeightType | Integer | 因子加权方式,整型,取值如下
|
| M | Integer | 固定间隔数,整型,由区间截止日、从后往前推移,每M个日线为一个划分子区间。若滚动推移到第一个子区间不足M个交易日时,则使用实际间隔(小于M)来计算。M=5常表示滚动周线,M=20常表示滚动月线,…… |
| Modelflag | Integer | 模型标识,字符串型,取值如下
|
Modelflag取值 |
含义 |
备注 | |
"LC" |
实时算 |
| |
"MD" |
因子库 |
需要授权,请参考FAQ:关于因子授权说明 | |
"DV" |
兼容模式 |
默认,有权限取因子库,无权限则实时计算 |
|
| 返回 | Array | 数组 |
BegT:=20221001T;
EndT:=20221231T;
ModelType:=2; //四因子
WeightType:=2; //等权
M:=20;
Modelflag:="DV";
return FamaFrench_FactorRet_FixedInterval(BegT,EndT,ModelType,WeightType,M,Modelflag);
//返回:
