OPC_BARIERA

Zwraca cenę opcji barierowej, obliczoną przy użyciu modelu wyceny opcji Blacka-Scholesa.

tip

For relevant background information, visit the Options (finance) and Black-Scholes model Wikipedia pages.


Składnia

OPC_BARIERA(Cena rozliczeniowa; Zmienność; Stopa; Zagraniczna stopa; Data spłaty; Cena wykonania; Dolna bariera; Górna bariera; Rabat; Put/Call; Knock-in/Out; Typ bariery [; Współczynniki greckie])

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.

Cena wykonania jest ceną wykonania opcji i nie powinna być ujemna.

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.

Rabat to kwota pieniędzy, która ma zostać wypłacona w terminie daty spłaty, jeśli przekroczona zostanie bariera.

Put lub Call to ciąg znaków określający, czy opcja jest typu put („p” – sprzedaż) czy opcją typu call („c” – kupno).

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.

Przykłady

=OPC_BARIERA(30;0,2;0,06;0;1;40;25;0;0;"c";"o";"c") zwraca wartość 0,4243.

=OPC_BARIERA(50;0,4;0,05;0;0,5;65;0;80;0;"p";"o";"c";"e") zwraca wartość 10,1585.

Szczegóły techniczne

tip

Ta funkcja jest dostępna od wersji 4.0 LibreOfficeDev.


Ta funkcja nie jest częścią standardu Open Document Format for Office Applications (OpenDocument) Version 1.3. Part 4: Recalculated Formula (OpenFormula) Format. Przestrzeń nazw to

COM.SUN.STAR.SHEET.ADDIN.PRICINGFUNCTIONS.GETOPTBARRIER