FundMinRecoveryPeriod
简述
基金净值突破前值最长时间。与系统股票pn_stock()、当前时间pn_date(),周期cy_cycle()相关。
FundMinRecoveryPeriod(BegT:DateTime;EndT:DateTime;DataSelect:Integer;Cycle:String):Integer;
名称 | 类型 | 说明 |
---|
BegT | DateTime | 日期类型,开始日期; |
EndT | DateTime | 日期类型,截止日期; |
DataSelect | Integer | 用户自定义类型,所选取的数据;
显示名 |
取值 |
净值数据 |
0 |
行情数据 |
1 |
费前 |
4 |
费后 |
5 |
|
Cycle | String | 周期类型,周期 |
返回 | Integer | 整数 |
净值突破前值最长时间=恢复到最大回撤起始日净值对应的日期-最大回撤起始日
//OF090005,2016年1月1日到2018年9月3日,日线净值数据的净值突破前值最长时间。
setsysparam(pn_stock(),"OF090005");
Return FundMinRecoveryPeriod(20160101T,20180903T,0,cy_day());
//结果:2