Skip to content

Commit f631149

Browse files
committed
some renaming only, no real change
1 parent 1f4764b commit f631149

File tree

4 files changed

+23
-23
lines changed

4 files changed

+23
-23
lines changed

Instruments_test.sml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ structure Instruments_Test = struct
22
open Currency Contract Instruments
33
fun pr s c = print (s ^ ":\n " ^ ppContr c ^ "\n")
44

5-
val fxput = vanillaFx Put "F" "Nordea" (USD, SEK) 30E6 6.3 365
5+
val fxput = vanillaFx Put "F" "us" (USD, SEK) 30E6 6.3 365
66
val () = pr "fxput" fxput
77

88
val touch = fxBarrierTouch "me" "you" EUR 1000.0 (EUR,USD) 1.0 Up (12*30)

loadscript

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ app use ["DateUtil.sml", "ListSort.sig", "ListSort.sml", "CURRENCY.sig", "Curren
77
(* bring contract "constructors" in direct scope *)
88
open Currency Contract Instruments;
99

10-
print "vanillaFx Put \"F\" \"Nordea\" (USD,SEK) 30E6 6.3 365:\n";
10+
print "vanillaFx Put \"F\" \"us\" (USD,SEK) 30E6 6.3 365:\n";
1111

12-
val fxput = vanillaFx Put "F" "Nordea" (USD,SEK) 30E6 6.3 365;
12+
val fxput = vanillaFx Put "F" "us" (USD,SEK) 30E6 6.3 365;
1313

1414

nordea2013-12-05.txt renamed to meetingnotes2013-12-15.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
by Martin Elsman, DIKU
77
with Patrick Bahr and Jost Berthold
88

9-
Presentation at Nordea
9+
Presentation
1010

1111

1212
-----
@@ -35,7 +35,7 @@
3535

3636
- vanilla call option
3737

38-
- Nordea portfolio
38+
- Example portfolio
3939

4040
* Formal treatment (semantics)
4141

portfolio.sml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,38 +6,38 @@ in
66
(* single barrier options: directly taken from table *)
77

88
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 *)
1414
]
1515

1616
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 *)
2121
]
2222

2323
(* Asian options: not yet handled (needs observable average computation) *)
2424

2525
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*)
3030
]
3131

3232
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 *)
3737
]
3838

3939
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 *)
4141
]
4242

4343
(* everything together (using "all" constructor) is the portfolio *)

0 commit comments

Comments
 (0)