BarrierOption(RQuantLib)
BarrierOption()所属R语言包:RQuantLib
Barrier Option evaluation using Closed-Form solution
障碍期权评价采用封闭形式的解决方案
译者:生物统计家园网 机器人LoveR
描述----------Description----------
This function evaluations an Barrier option on a common stock using a closed-form solution. The option value as well as the common first
此功能评价的障碍期权在普通股,采用封闭形式的解决方案。选项值以及共同第一
用法----------Usage----------
## Default S3 method:[默认方法]
BarrierOption(barrType, type, underlying, strike,
dividendYield, riskFreeRate, maturity,
volatility, barrier, rebate=0.0)
参数----------Arguments----------
参数:barrType
A string with one of the values downin, downout, upin or upout
一个字符串,其中的一个值downin,downout,upin或upout
参数:type
A string with one of the values call or put
一个字符串一个的值call或put的
参数:underlying
Current price of the underlying stock
标的股票的当前价格
参数:strike
Strike price of the option
购股权的行使价的
参数:dividendYield
Continuous dividend yield (as a fraction) of the stock
连续的股息收益率(一小部分)的股票
参数:riskFreeRate
Risk-free rate
无风险利率
参数:maturity
Time to maturity (in fractional years)
时间到成熟(在分数几年)
参数:volatility
Volatility of the underlying stock
标的股票的波动性
参数:barrier
Option barrier value
选项限制值
参数:rebate
Optional option rebate, defaults to 0.0
回扣可选选项,默认为0.0
Details
详细信息----------Details----------
A closed-form solution is used to value the Barrier Option. In the case of Barrier options, the calculations are from Haug's "Option pricing formulas" book (McGraw-Hill).
封闭形式的解决方案是用来珍惜的障碍期权。在障碍选择权的情况下,计算豪格的“期权定价公式”一书(麦格劳 - 希尔)。
Please see any decent Finance textbook for background reading, and the QuantLib documentation for details on the QuantLib implementation.
请参阅任何像样的金融教科书的背景阅读,QuantLibQuantLib实施的细节上的文件。
值----------Value----------
An object of class BarrierOption (which inherits from class Option) is returned. It contains a list with the following components: <table summary="R valueblock"> <tr valign="top"><td>value</td> <td> Value of option</td></tr> <tr valign="top"><td>delta</td> <td> Sensitivity of the option value for a change in the underlying</td></tr> <tr valign="top"><td>gamma</td> <td> Sensitivity of the option delta for a change in the underlying</td></tr> <tr valign="top"><td>vega</td> <td> Sensitivity of the option value for a change in the underlying's volatility</td></tr> <tr valign="top"><td>theta</td> <td> Sensitivity of the option value for a change in t, the remaining time to maturity</td></tr> <tr valign="top"><td>rho</td> <td> Sensitivity of the option value for a change in the risk-free interest rate</td></tr> <tr valign="top"><td>dividendRho</td> <td> Sensitivity of the option value for a change in the dividend yield</td></tr> <tr valign="top"><td>parameters</td> <td> List with parameters with which object was created</td></tr></table> .
类的一个对象BarrierOption(继承自类Option)返回。它包含了以下组件:<table summary="R valueblock"> <tr valign="top"> <TD>value </ TD> <TD>值的选项</ TD> </ TR> <tr valign="top"> <TD> delta</ TD> <TD>灵敏度的期权价值的变化的基础</ TD> </ TR> <TR VALIGN =“顶部“> <TD> gamma </ TD> <TD>灵敏度的选项Delta的变化的基础</ TD> </ TR> <tr valign="top"> <TD><X > </ TD> <TD>在底层的波动性的期权价值的变化的灵敏度</ TD> </ TR> <tr valign="top"> <TD> vega</ TD> < TD>敏感度的选项值的变化吨,至到期日的剩余时间</ TD> </ TR> <tr valign="top"> <TD> theta </ TD> <TD>灵敏度的期权价值无风险利率的变化</ TD> </ TR> <tr valign="top"> <TD> rho</ TD> <TD>灵敏度选项的值股息收益率的变化</ TD> </ TR> <tr valign="top"> <TD>dividendRho </ TD> <TD>与参数列表与对象的创建</ TD> </ TR> </ TABLE>。
Note that under the new pricing framework used in QuantLib, binary pricers do not provide analytics for 'Greeks'. This is expected to be addressed in future releases of QuantLib.
请注意,根据新的定价框架,用于在QuantLib,二进制定价器不提供分析的希腊人“。这是预期,QuantLib在未来的版本中加以解决。
注意----------Note----------
The interface might change in future release as QuantLib
该接口在将来的版本中可能会改变QuantLib
(作者)----------Author(s)----------
Dirk Eddelbuettel <a href="mailto:edd@debian.org">edd@debian.org</a> for the <font face="Courier New,Courier" color="#666666"><b>R</b></font> interface;
the QuantLib Group for <code>QuantLib</code>
参考文献----------References----------
<h3>See Also</h3>
实例----------Examples----------
BarrierOption(barrType="downin", type="call", underlying=100,
strike=100, dividendYield=0.02, riskFreeRate=0.03,
maturity=0.5, volatility=0.4, barrier=90)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|