LibreOffice 7.5 abi
Returns the pricing of a touch / no-touch option, calculated using the Black-Scholes option pricing model.
For relevant background information, visit the Options (finance) and Black-Scholes model Wikipedia pages.
Further information about touch / no-touch options may be found on many financial websites.
OPT_TOUCH(Spot; Volatility; Rate; ForeignRate; Maturity; LowerBarrier; UpperBarrier; ForeignDomestic; InOut; BarrierMonitoring [; Greek])
Spot is the price / value of the underlying asset and should be greater than 0.0.
Volatility is the annual percentage volatility of the underlying asset expressed as a decimal (for example, enter 30% as 0.3). The value should be greater than 0.0.
Rate is the continuously compounded interest rate. This is a percentage expressed as a decimal (for example, enter 40% as 0.4).
ForeignRate is the continuously compounded foreign interest rate. This is a percentage expressed as a decimal (for example, enter 50% as 0.5).
Maturity is the time to maturity of the option, in years, and should be non-negative.
LowerBarrier is the predetermined lower barrier price; set to zero for no lower barrier.
UpperBarrier is the predetermined upper barrier price; set to zero for no upper barrier.
ForeignDomestic is a string that defines whether the option pays domestic (â€śdâ€ť) or foreign (â€śfâ€ť) currency.
InOut is a string that defines whether the option is knock-in (â€śiâ€ť) or knock-out (â€śoâ€ť).
BarrierMonitoring is a string that defines whether the barrier is monitored continuously (â€ścâ€ť) or only at the end / maturity (â€śeâ€ť).
Greek (optional) is a string argument. If omitted or set to â€śvalueâ€ť, â€śvâ€ť, â€śpriceâ€ť, or â€śpâ€ť, then the function simply returns the option price. If another valid string is entered, the function returns price sensitivities (Greeks) to one of the input parameters. The valid options in this case are as follows.
â€śdeltaâ€ť or â€śdâ€ť.
â€śgammaâ€ť or â€śgâ€ť.
â€śthetaâ€ť or â€śtâ€ť.
â€śvegaâ€ť or â€śeâ€ť.
â€śvolgaâ€ť or â€śoâ€ť.
â€śvannaâ€ť or â€śaâ€ť.
â€śrhoâ€ť or â€śrâ€ť.
â€śrhofâ€ť or â€śfâ€ť.
=OPT_TOUCH(50;0.25;0.05;0;1;0;55;"d";"i";"c") returns the value 0.6876.
=OPT_TOUCH(80;0.2;0.05;0;0.5;60;0;"f";"o";"c";"r") returns the value 15.5516.
COM.SUN.STAR.SHEET.ADDIN.PRICINGFUNCTIONS.GETOPTTOUCH