|
6 | 6 | (* single barrier options: directly taken from table *)
|
7 | 7 |
|
8 | 8 | val singleBarriers =
|
9 |
| - [ fxSingleBarrierOut "Nordea" "A" (USD,SEK) Call Down 10E6 6.60 6.25 180 (* 6 months *) |
10 |
| - , fxSingleBarrierOut "A" "Nordea" (USD,SEK) Call Down 15E6 6.40 6.25 180 (* 6 months *) |
11 |
| - , fxSingleBarrierIn "B" "Nordea" (USD,SEK) Put Up 50E6 6.40 6.80 360 (* 1 year *) |
12 |
| - , fxSingleBarrierOut "C" "Nordea" (USD,SEK) Call Down 5E6 6.30 6.70 360 (* 1 year *) |
13 |
| - , fxSingleBarrierIn "D" "Nordea" (USD,SEK) Put Down 50E6 6.70 6.20 360 (* 1 year *) |
| 9 | + [ fxSingleBarrierOut "us" "A" (USD,SEK) Call Down 10E6 6.60 6.25 180 (* 6 months *) |
| 10 | + , fxSingleBarrierOut "A" "us" (USD,SEK) Call Down 15E6 6.40 6.25 180 (* 6 months *) |
| 11 | + , fxSingleBarrierIn "B" "us" (USD,SEK) Put Up 50E6 6.40 6.80 360 (* 1 year *) |
| 12 | + , fxSingleBarrierOut "C" "us" (USD,SEK) Call Down 5E6 6.30 6.70 360 (* 1 year *) |
| 13 | + , fxSingleBarrierIn "D" "us" (USD,SEK) Put Down 50E6 6.70 6.20 360 (* 1 year *) |
14 | 14 | ]
|
15 | 15 |
|
16 | 16 | val doubleBarriers =
|
17 |
| - [ fxDoubleBarrierIn "A" "Nordea" (USD,SEK) Call 5E6 6.60 (6.20,6.80) 90 (* 3 months *) |
18 |
| - , fxDoubleBarrierOut "B" "Nordea" (USD,SEK) Call 10E6 6.40 (6.20,6.80) 90 |
19 |
| - , fxDoubleBarrierOut "B" "Nordea" (USD,SEK) Put 8E6 6.50 (6.20,6.80) 90 |
20 |
| - , fxDoubleBarrierIn "D" "Nordea" (USD,SEK) Put 40E6 6.30 (6.10,6.70) 360 (* 1 year *) |
| 17 | + [ fxDoubleBarrierIn "A" "us" (USD,SEK) Call 5E6 6.60 (6.20,6.80) 90 (* 3 months *) |
| 18 | + , fxDoubleBarrierOut "B" "us" (USD,SEK) Call 10E6 6.40 (6.20,6.80) 90 |
| 19 | + , fxDoubleBarrierOut "B" "us" (USD,SEK) Put 8E6 6.50 (6.20,6.80) 90 |
| 20 | + , fxDoubleBarrierIn "D" "us" (USD,SEK) Put 40E6 6.30 (6.10,6.70) 360 (* 1 year *) |
21 | 21 | ]
|
22 | 22 |
|
23 | 23 | (* Asian options: not yet handled (needs observable average computation) *)
|
24 | 24 |
|
25 | 25 | val touchOptions =
|
26 |
| - [ fxBarrierTouch "C" "Nordea" USD (0.04 * 10E6) (USD,SEK) 6.90 Up 180 (* 6 months *) |
27 |
| - , fxBarrierTouch "D" "Nordea" USD (0.03 * 20E6) (USD,SEK) 6.15 Down 360 (* 12 months*) |
28 |
| - , fxBarrierNoTouch "A" "Nordea" USD (0.07 * 20E6) (USD,SEK) 6.70 Up 180 (* 6 months*) |
29 |
| - , fxBarrierNoTouch "B" "Nordea" USD (0.08 * 20E6) (USD,SEK) 6.25 Down 360 (* 12 months*) |
| 26 | + [ fxBarrierTouch "C" "us" USD (0.04 * 10E6) (USD,SEK) 6.90 Up 180 (* 6 months *) |
| 27 | + , fxBarrierTouch "D" "us" USD (0.03 * 20E6) (USD,SEK) 6.15 Down 360 (* 12 months*) |
| 28 | + , fxBarrierNoTouch "A" "us" USD (0.07 * 20E6) (USD,SEK) 6.70 Up 180 (* 6 months*) |
| 29 | + , fxBarrierNoTouch "B" "us" USD (0.08 * 20E6) (USD,SEK) 6.25 Down 360 (* 12 months*) |
30 | 30 | ]
|
31 | 31 |
|
32 | 32 | val vanillas =
|
33 |
| - [ vanillaFx Call "Nordea" "F" (USD,SEK) 10E6 6.60 90 (* 3 months *) |
34 |
| - , vanillaFx Put "Nordea" "F" (USD,SEK) 10E6 6.30 180 (* 6 months *) |
35 |
| - , vanillaFx Put "F" "Nordea" (USD,SEK) 10E6 6.30 360 (* 12 months *) |
36 |
| - , vanillaFx Put "Nordea" "F" (USD,SEK) 10E6 6.30 720 (* 24 months *) |
| 33 | + [ vanillaFx Call "us" "F" (USD,SEK) 10E6 6.60 90 (* 3 months *) |
| 34 | + , vanillaFx Put "us" "F" (USD,SEK) 10E6 6.30 180 (* 6 months *) |
| 35 | + , vanillaFx Put "F" "us" (USD,SEK) 10E6 6.30 360 (* 12 months *) |
| 36 | + , vanillaFx Put "us" "F" (USD,SEK) 10E6 6.30 720 (* 24 months *) |
37 | 37 | ]
|
38 | 38 |
|
39 | 39 | val forwards =
|
40 |
| - [ fxForward "Nordea" "G" (USD,SEK) 60E6 6.55 180 (* 6 months *) |
| 40 | + [ fxForward "us" "G" (USD,SEK) 60E6 6.55 180 (* 6 months *) |
41 | 41 | ]
|
42 | 42 |
|
43 | 43 | (* everything together (using "all" constructor) is the portfolio *)
|
|
0 commit comments