1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #include "pricing.hrc"
22 // function and parameter description
23 Resource RID_PRICING_FUNCTION_DESCRIPTIONS
25 Resource PRICING_FUNCDESC_OptBarrier
27 String 1 // description
29 Text [ en-US ] = "Pricing of a barrier option";
32 String 2 // name of parameter 1
34 Text [ en-US ] = "spot";
36 String 3 // description of parameter 1
38 Text [ en-US ] = "Price/value of the underlying asset";
41 String 4 // name of parameter 2
43 Text [ en-US ] = "vol";
45 String 5 // description of parameter 2
47 Text [ en-US ] = "Annual volatility of the underlying asset";
50 String 6 // name of parameter 3
54 String 7 // description of parameter 3
56 Text [ en-US ] = "Interest rate (continuously compounded)";
59 String 8 // name of parameter 4
61 Text [ en-US ] = "rf";
63 String 9 // description of parameter 4
65 Text [ en-US ] = "Foreign interest rate (continuously compounded)";
68 String 10 // name of parameter 5
72 String 11 // description of parameter 5
74 Text [ en-US ] = "Time to maturity of the option in years";
77 String 12 // name of parameter 6
79 Text [ en-US ] = "strike";
81 String 13 // description of parameter 6
83 Text [ en-US ] = "Strike level of the option";
86 String 14 // name of parameter 7
88 Text [ en-US ] = "barrier_low";
90 String 15 // description of parameter 7
92 Text [ en-US ] = "Lower barrier (set to 0 for no lower barrier)";
95 String 16 // name of parameter 8
97 Text [ en-US ] = "barrier_up";
99 String 17 // description of parameter 8
101 Text [ en-US ] = "Upper barrier (set to 0 for no upper barrier)";
104 String 18 // name of parameter 8
106 Text [ en-US ] = "rebate";
108 String 19 // description of parameter 8
110 Text [ en-US ] = "Amount of money paid at maturity if barrier was hit";
113 String 20 // name of parameter 10
115 Text [ en-US ] = "put/call";
117 String 21 // description of parameter 10
119 Text [ en-US ] = "String to define if the option is a (p)ut or a (c)all";
122 String 22 // name of parameter 11
124 Text [ en-US ] = "knock in/out";
126 String 23 // description of parameter 11
128 Text [ en-US ] = "String to define if the option is of type knock-(i)n or knock-(o)ut";
131 String 24 // name of parameter 12
133 Text [ en-US ] = "barrier_type";
135 String 25 // description of parameter 12
137 Text [ en-US ] = "String to define whether the barrier is observed (c)ontinuously or only at the (e)nd/maturity";
140 String 26 // name of parameter 13
142 Text [ en-US ] = "greek";
144 String 27 // description of parameter 13
146 Text [ en-US ] = "Optional parameter, if left out then the function simply returns the option price; if set, the function returns price sensitivities (Greeks) to one of the input parameters; possible values are (d)elta, (g)amma, (t)heta, v(e)ga, v(o)lga, v(a)nna, (r)ho, rho(f)";
150 Resource PRICING_FUNCDESC_OptTouch
152 String 1 // description
154 Text [ en-US ] = "Pricing of a touch/no-touch option";
157 String 2 // name of parameter 1
159 Text [ en-US ] = "spot";
161 String 3 // description of parameter 1
163 Text [ en-US ] = "Price/value of the underlying asset";
166 String 4 // name of parameter 2
168 Text [ en-US ] = "vol";
170 String 5 // description of parameter 2
172 Text [ en-US ] = "Annual volatility of the underlying asset";
175 String 6 // name of parameter 3
177 Text [ en-US ] = "r";
179 String 7 // description of parameter 3
181 Text [ en-US ] = "Interest rate (continuously compounded)";
184 String 8 // name of parameter 4
186 Text [ en-US ] = "rf";
188 String 9 // description of parameter 4
190 Text [ en-US ] = "Foreign interest rate (continuously compounded)";
193 String 10 // name of parameter 5
195 Text [ en-US ] = "T";
197 String 11 // description of parameter 5
199 Text [ en-US ] = "Time to maturity of the option in years";
202 String 12 // name of parameter 6
204 Text [ en-US ] = "barrier_low";
206 String 13 // description of parameter 6
208 Text [ en-US ] = "Lower barrier (set to 0 for no lower barrier)";
211 String 14 // name of parameter 7
213 Text [ en-US ] = "barrier_up";
215 String 15 // description of parameter 7
217 Text [ en-US ] = "Upper barrier (set to 0 for no upper barrier)";
220 String 16 // name of parameter 8
222 Text [ en-US ] = "foreign/domestic";
224 String 17 // description of parameter 8
226 Text [ en-US ] = "String to define if the option pays one unit of (d)omestic currency (cash or nothing) or (f)oreign currency (asset or nothing)";
229 String 18 // name of parameter 9
231 Text [ en-US ] = "knock in/out";
233 String 19 // description of parameter 9
235 Text [ en-US ] = "String to define if the option is of type knock-(i)n (touch) or knock-(o)ut (no-touch)";
238 String 20 // name of parameter 10
240 Text [ en-US ] = "barrier_type";
242 String 21 // description of parameter 10
244 Text [ en-US ] = "String to define whether the barrier is observed (c)ontinuously or only at the (e)nd/maturity";
247 String 22 // name of parameter 11
249 Text [ en-US ] = "greek";
251 String 23 // description of parameter 11
253 Text [ en-US ] = "Optional parameter, if left out then the function simply returns the option price; if set, the function returns price sensitivities (Greeks) to one of the input parameters; possible values are (d)elta, (g)amma, (t)heta, v(e)ga, v(o)lga, v(a)nna, (r)ho, rho(f)";
257 Resource PRICING_FUNCDESC_OptProbHit
259 String 1 // description
261 Text [ en-US ] = "Probability that an asset hits a barrier assuming it follows dS/S = mu dt + vol dW";
264 String 2 // name of parameter 1
266 Text [ en-US ] = "spot";
268 String 3 // description of parameter 1
270 Text [ en-US ] = "Price/value S of the underlying asset";
273 String 4 // name of parameter 2
275 Text [ en-US ] = "vol";
277 String 5 // description of parameter 2
279 Text [ en-US ] = "Annual volatility of the underlying asset";
282 String 6 // name of parameter 3
284 Text [ en-US ] = "drift";
286 String 7 // description of parameter 3
288 Text [ en-US ] = "Parameter mu in dS/S = mu dt + vol dW";
291 String 8 // name of parameter 4
293 Text [ en-US ] = "T";
295 String 9 // description of parameter 4
297 Text [ en-US ] = "Time to maturity";
300 String 10 // name of parameter 5
302 Text [ en-US ] = "barrier_low";
304 String 11 // description of parameter 5
306 Text [ en-US ] = "Lower barrier (set to 0 for no lower barrier)";
309 String 12 // name of parameter 6
311 Text [ en-US ] = "barrier_up";
313 String 13 // description of parameter 6
315 Text [ en-US ] = "Upper barrier (set to 0 for no upper barrier)";
319 Resource PRICING_FUNCDESC_OptProbInMoney
321 String 1 // description
323 Text [ en-US ] = "Probability that an asset will at maturity end up between two barrier levels, assuming it follows dS/S = mu dt + vol dW (if the last two optional parameters (strike, put/call) are specified, the probability of S_T in [strike, upper barrier] for a call and S_T in [lower barrier, strike] for a put will be returned)";
326 String 2 // name of parameter 1
328 Text [ en-US ] = "spot";
330 String 3 // description of parameter 1
332 Text [ en-US ] = "Price/value of the asset";
335 String 4 // name of parameter 2
337 Text [ en-US ] = "vol";
339 String 5 // description of parameter 2
341 Text [ en-US ] = "Annual volatility of the asset";
344 String 6 // name of parameter 3
346 Text [ en-US ] = "drift";
348 String 7 // description of parameter 3
350 Text [ en-US ] = "Parameter mu from dS/S = mu dt + vol dW";
353 String 8 // name of parameter 4
355 Text [ en-US ] = "T";
357 String 9 // description of parameter 4
359 Text [ en-US ] = "Time to maturity in years";
362 String 10 // name of parameter 5
364 Text [ en-US ] = "barrier_low";
366 String 11 // description of parameter 5
368 Text [ en-US ] = "Lower barrier (set to 0 for no lower barrier)";
371 String 12 // name of parameter 6
373 Text [ en-US ] = "barrier_up";
375 String 13 // description of parameter 6
377 Text [ en-US ] = "Upper barrier (set to 0 for no upper barrier)";
380 String 14 // name of parameter 7
382 Text [ en-US ] = "put/call";
384 String 15 // description of parameter 7
386 Text [ en-US ] = "Optional (p)ut/(c)all indicator";
389 String 16 // name of parameter 8
391 Text [ en-US ] = "strike";
393 String 17 // description of parameter 8
395 Text [ en-US ] = "Optional strike level";
401 // function names as accessible from cells
402 Resource RID_PRICING_FUNCTION_NAMES
404 String PRICING_FUNCNAME_OptBarrier
406 Text [ en-US ] = "OPT_BARRIER";
408 String PRICING_FUNCNAME_OptTouch
410 Text [ en-US ] = "OPT_TOUCH";
412 String PRICING_FUNCNAME_OptProbHit
414 Text [ en-US ] = "OPT_PROB_HIT";
416 String PRICING_FUNCNAME_OptProbInMoney
418 Text [ en-US ] = "OPT_PROB_INMONEY";
423 // These were originally meant to be able to load Excel documents that for
424 // some time were stored with localized function names.
425 // This is not relevant to this add-in, so we only supply the same
426 // (English) function names again.
427 // see also: GetExcelName() or GetCompNames() or getCompatibilityNames()
428 Resource RID_PRICING_DEFFUNCTION_NAMES
430 StringArray PRICING_DEFFUNCNAME_OptBarrier
438 StringArray PRICING_DEFFUNCNAME_OptTouch
446 StringArray PRICING_DEFFUNCNAME_OptProbHit
454 StringArray PRICING_DEFFUNCNAME_OptProbInMoney
458 < "OPT_PROB_INMONEY"; >;
463 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */