blob: 19cc456c435842382d6f1b8da73c5e7137a751f3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
<?xml version="1.0" encoding="UTF-8"?>
<helpdocument version="1.0">
<!--
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
-->
<meta>
<topic id="funcoptbarrier" indexer="include" status="PUBLISH">
<title id="tit" xml-lang="en-US">Function OPT_BARRIER</title>
<filename>/text/scalc/01/func_opt_barrier.xhp</filename>
</topic>
</meta>
<body>
<section id="optbarrier">
<bookmark xml-lang="en-US" branch="index" id="bm_id511575065323638">
<bookmark_value>OPT_BARRIER function</bookmark_value>
</bookmark>
<bookmark id="bm_id941575063871993" xml-lang="en-US" branch="hid/SC_HID_PAI_FUNC_OPT_BARRIER" localize="false"/>
<h1 id="hd_id241575063871994"><variable id="optbrarrierh1"><link href="text/scalc/01/func_opt_barrier.xhp">OPT_BARRIER</link></variable></h1>
<paragraph id="par_id121575063871995" role="paragraph" xml-lang="en-US"><variable id="variable name"><ahelp hid=".">Returns the pricing for a barrier option, calculated using the Black-Scholes option pricing model.</ahelp></variable></paragraph>
</section>
<embed href="text/scalc/01/func_opt_touch.xhp#opttip"/>
<embed href="text/scalc/01/ful_func.xhp#func_head_syntax"/>
<paragraph role="code" id="par_id371575067051846">OPT_BARRIER(Spot; Volatility; Rate; Foreign Rate; Maturity; Strike; LowerBarrier; UpperBarrier; Rebate; PutCall; InOut; BarrierMonitoring [; Greek])</paragraph>
<paragraph role="paragraph" id="par_id641575073609823" localize="false"><embedvar href="text/scalc/01/func_opt_touch.xhp#optspot" markup="keep"/></paragraph>
<paragraph role="paragraph" id="par_id731575073617425" localize="false"><embedvar href="text/scalc/01/func_opt_touch.xhp#optvolat" markup="keep"/></paragraph>
<paragraph role="paragraph" id="par_id341575073621215" localize="false"><embedvar href="text/scalc/01/func_opt_touch.xhp#optrate" markup="keep"/></paragraph>
<paragraph role="paragraph" id="par_id391575073625097" localize="false"><embedvar href="text/scalc/01/func_opt_touch.xhp#optfrate" markup="keep"/></paragraph>
<paragraph role="paragraph" id="par_id541575073629073" localize="false"><embedvar href="text/scalc/01/func_opt_touch.xhp#optmaturity" markup="keep"/></paragraph>
<paragraph role="paragraph" id="par_id681575073426941"><emph>Strike</emph> is the strike price of the option and should be non-negative.</paragraph>
<paragraph role="paragraph" id="par_id321575073632473" localize="false"><embedvar href="text/scalc/01/func_opt_touch.xhp#optlowbar" markup="keep"/></paragraph>
<paragraph role="paragraph" id="par_id541575073636017" localize="false"><embedvar href="text/scalc/01/func_opt_touch.xhp#optupbar" markup="keep"/></paragraph>
<paragraph role="paragraph" id="par_id671575073495724"><emph>Rebate</emph> is the amount of money to be paid at maturity if the barrier is hit.</paragraph>
<paragraph role="paragraph" id="par_id691575073511191"><variable id="optputcall"><emph>Put or Call</emph> is a string that defines whether the option is a put (“p”) or a call (“c”).</variable></paragraph>
<paragraph role="paragraph" id="par_id11575073641257" localize="false"><embedvar href="text/scalc/01/func_opt_touch.xhp#optinout" markup="keep"/></paragraph>
<paragraph role="paragraph" id="par_id211575073645423" localize="false"><embedvar href="text/scalc/01/func_opt_touch.xhp#optbarmon" markup="keep"/></paragraph>
<embed href="text/scalc/01/func_opt_touch.xhp#optgreek"/>
<embed href="text/scalc/01/ful_func.xhp#func_head_example"/>
<paragraph role="paragraph" id="par_id651575073773761"><input>=OPT_BARRIER(30;0.2;0.06;0;1;40;25;0;0;"c";"o";"c")</input> returns the value 0.4243.</paragraph>
<paragraph role="paragraph" id="par_id401575073777593"><input>=OPT_BARRIER(50;0.4;0.05;0;0.5;65;0;80;0;"p";"o";"c";"e")</input> returns the value 10.1585.</paragraph>
<embed href="text/scalc/01/common_func.xhp#sectiontechinfo"/>
<embed href="text/scalc/00/avail_release.xhp#4.0"/>
<embed href="text/scalc/01/common_func.xhp#notODFF"/>
<paragraph role="paragraph" id="par_id341640873986703" localize="false"><literal>COM.SUN.STAR.SHEET.ADDIN.PRICINGFUNCTIONS.GETOPTBARRIER</literal></paragraph>
<section id="relatedtopics">
<tip id="par_id471677015317570"><link href="https://wiki.documentfoundation.org/Documentation/Calc_Functions/OPT_BARRIER">OPT_BARRIER wiki page</link>.</tip>
<embed href="text/scalc/01/func_opt_barrier.xhp#optbrarrierh1"/>
<embed href="text/scalc/01/func_opt_touch.xhp#opttouchh1"/>
<embed href="text/scalc/01/func_opt_prob_inmoney.xhp#optprobinmoneyh1"/>
<embed href="text/scalc/01/func_opt_prob_hit.xhp#optprobhith1"/>
<embed href="text/scalc/01/func_opt_touch.xhp#relatedfinancial"/>
</section>
</body>
</helpdocument>
|