BinomialTreeOfCoin
简述
二叉树定价(外汇期权),参考资料:
<<期权.期货和其它衍生产品>> John C. Hull 华夏出版社P317页
BinomialTreeOfCoin (OptionType:Integer;S:Real;X:Real;R:Real;Std:Real;T:Real;ReturnType:Integer); TableArray
名称 | 类型 | 说明 |
---|
OptionType | Integer | 用户自定义,期权类型,含义如下表:
|
S | Real | 实数,现价 |
X | Real | 实数,执行价 |
R | Real | 实数,无风险年利率(%) |
Std | Real | 实数,年波动率(%) |
T | Real | 实数,期限(月) |
ReturnType | Integer | 用户自定义,返回类型,含义如下表:
显示名 |
值 |
价格二叉树 |
0 |
期权二叉树 |
1 |
价格和期权二叉树 |
2 |
期权价值 |
3 |
|
返回 | TableArray | 二叉树定价(外汇期权) |
Return BinomialTreeOfCoin(0,1.61,1.6,8,10,12,12,3);
//结果:
