CB_YTM_MonteCarloSimulation
简述
基于蒙特卡洛估值的修正YTM
CB_YTM_MonteCarloSimulation(CBcode:string;InitialDate:datetime;Path:int):Real
| 名称 | 类型 | 说明 |
|---|
| CBcode | string | 字符串,转债代码 |
| InitialDate | datetime | 日期,截止日 |
| Path | int | 整数,模拟次数,默认模拟10000次取平均值 |
| 返回 | Real | 实数,基于蒙特卡洛估值的修正YTM |
Return CB_YTM_MonteCarloSimulation('SH110030',20180607T);
//结果:3.59488031434155
备注:蒙特卡洛模拟多次返回结果不一致