RiskFreeRateofReturnDayly
简述
年化无风险收益率转换非年化收益率,与系统参数(股票,时间)相关。
RiskFreeRateofReturnDayly(Rf:real;Cy:String;RateType:Integer;DaysIn1y:Integer):real
名称 | 类型 | 说明 |
---|
Rf | real | 实数,年化无风险收益率(%) |
Cy | String | 周期,非年化收益率周期 |
RateType | Integer | 用户自定义,年化收益率折算为非年化收益率方法
|
DaysIn1y | Integer | 用户自定义
250天(仅对折算为日收益率有效) |
250 |
365天(仅对折算为日收益率有效) |
365 |
360天(仅对折算为日收益率有效) |
360 |
50周期(仅对折算为周收益率有效) |
50 |
12月(仅对折算为月收益率有效) |
12 |
交易所交易周期 |
-1 |
|
返回 | real | 实数 |
单利:非年化收益率=年化收益率/周期(日,周,月)数量×100%
复利:非年化收益率=(1+年化收益率)1/周期(日,周,月)数量×100%
SetSysParam(pn_stock(),'sz000001');
SetSysParam(PN_Date(),20180801T);
return RiskFreeRateofReturnDayly(3,cy_day(),'单利',250);
//返回:0.01