setCallExercisePolicy
Set call exercise policy for OptionEmbeddedFixedBond,
OptionEmbeddedFloatBond, or ConvertibleBond
instrument
Syntax
Description
sets the call exercise policy for a UpdatedInstrumentObject = setCallExercisePolicy(InstrumentObject,exerciseSchedule,exerciseStyle)OptionEmbeddedFixedBond, OptionEmbeddedFloatBond, or ConvertibleBond
instrument object.
Examples
This example shows how to use setCallExercisePolicy to maintain consistency between the exercise schedule and exercise style when using a OptionEmbeddedFixedBond instrument object.
Create OptionEmbeddedFixedBond Instrument Object
Use fininstrument to create an OptionEmbeddedFixedBond instrument object with different exercise styles.
Maturity = datetime(2024,1,1); Strike = [100;100]; ExerciseDates = [datetime(2020,1,1); datetime(2024,1,1)]; Period = 1; CallSchedule = timetable(ExerciseDates,Strike,'VariableNames',{'Strike Schedule'}); CallableBond = fininstrument("OptionEmbeddedFixedBond",'Maturity',Maturity,... 'CouponRate',0.025,'Period',Period, ... 'CallSchedule',CallSchedule)
CallableBond =
OptionEmbeddedFixedBond with properties:
CouponRate: 0.0250
Period: 1
Basis: 0
EndMonthRule: 1
Principal: 100
DaycountAdjustedCashFlow: 0
BusinessDayConvention: "actual"
Holidays: NaT
IssueDate: NaT
FirstCouponDate: NaT
LastCouponDate: NaT
StartDate: NaT
Maturity: 01-Jan-2024
CallDates: [2×1 datetime]
PutDates: [0×1 datetime]
CallSchedule: [2×1 timetable]
PutSchedule: [0×0 timetable]
CallExerciseStyle: "american"
PutExerciseStyle: [0×0 string]
Name: ""
Set the Exercise Style to Bermudan
Use setCallExercisePolicy to define the CallExerciseStyle as Bermudan.
CallableBond = setCallExercisePolicy(CallableBond, CallSchedule, "Bermudan") CallableBond =
OptionEmbeddedFixedBond with properties:
CouponRate: 0.0250
Period: 1
Basis: 0
EndMonthRule: 1
Principal: 100
DaycountAdjustedCashFlow: 0
BusinessDayConvention: "actual"
Holidays: NaT
IssueDate: NaT
FirstCouponDate: NaT
LastCouponDate: NaT
StartDate: NaT
Maturity: 01-Jan-2024
CallDates: [2×1 datetime]
PutDates: [0×1 datetime]
CallSchedule: [2×1 timetable]
PutSchedule: [0×0 timetable]
CallExerciseStyle: "bermudan"
PutExerciseStyle: [0×0 string]
Name: ""
Use setCallExercisePolicy to modify CallSchedule and continue using a Bermudan exercise style.
Strike = [100; 101;102;103]; ExerciseDates = [datetime(2018,1,1);datetime(2020,1,1);datetime(2022,1,1);datetime(2024,1,1)]; CallSchedule = timetable(ExerciseDates,Strike,'VariableNames',{'Strike Schedule'}); CallableBond = setCallExercisePolicy(CallableBond, CallSchedule)
CallableBond =
OptionEmbeddedFixedBond with properties:
CouponRate: 0.0250
Period: 1
Basis: 0
EndMonthRule: 1
Principal: 100
DaycountAdjustedCashFlow: 0
BusinessDayConvention: "actual"
Holidays: NaT
IssueDate: NaT
FirstCouponDate: NaT
LastCouponDate: NaT
StartDate: NaT
Maturity: 01-Jan-2024
CallDates: [4×1 datetime]
PutDates: [0×1 datetime]
CallSchedule: [4×1 timetable]
PutSchedule: [0×0 timetable]
CallExerciseStyle: "bermudan"
PutExerciseStyle: [0×0 string]
Name: ""
This example shows how to use setCallExercisePolicy to maintain consistency between the exercise schedule and exercise style when using a OptionEmbeddedFixedBond instrument object with three OptionEmbeddedFixedBond instruments.
Create OptionEmbeddedFixedBond Instrument Object
Use fininstrument to create an OptionEmbeddedFixedBond instrument object for three Option Embedded Fixed Bond instruments with American exercise styles.
Maturity = datetime([2024,1,1 ; 2024,4,1 ; 2024,8,1]); Strike = [100;100]; ExerciseDates = [datetime(2020,1,1); datetime(2024,1,1)]; Period = 1; CallSchedule = timetable(ExerciseDates,Strike,'VariableNames',{'Strike Schedule'}); CallableBond = fininstrument("OptionEmbeddedFixedBond",'Maturity',Maturity,... 'CouponRate',0.025,'Period',Period, ... 'CallSchedule',CallSchedule)
CallableBond=3×1 OptionEmbeddedFixedBond array with properties:
CouponRate
Period
Basis
EndMonthRule
Principal
DaycountAdjustedCashFlow
BusinessDayConvention
Holidays
IssueDate
FirstCouponDate
LastCouponDate
StartDate
Maturity
CallDates
PutDates
CallSchedule
PutSchedule
CallExerciseStyle
PutExerciseStyle
Name
CallableBond.CallExerciseStyle
ans = "american"
ans = "american"
ans = "american"
The CallExerciseStyle is "American" because the fininstrument syntax does not contain a CallExercideStyle specification and there are two exercise dates defined in the CallSchedule.
Set the Exercise Style to Bermudan
Use setCallExercisePolicy to define the CallExerciseStyle as Bermudan for the second (CallableBond(2)) instrument.
CallableBond(2) = setCallExercisePolicy(CallableBond(2), CallSchedule, "Bermudan") CallableBond=3×1 OptionEmbeddedFixedBond array with properties:
CouponRate
Period
Basis
EndMonthRule
Principal
DaycountAdjustedCashFlow
BusinessDayConvention
Holidays
IssueDate
FirstCouponDate
LastCouponDate
StartDate
Maturity
CallDates
PutDates
CallSchedule
PutSchedule
CallExerciseStyle
PutExerciseStyle
Name
CallableBond.CallExerciseStyle
ans = "american"
ans = "bermudan"
ans = "american"
Use setCallExercisePolicy to modify CallSchedule and continue using a Bermudan exercise style.
Strike = [100; 101;102;103]; ExerciseDates = [datetime(2018,1,1);datetime(2020,1,1);datetime(2022,1,1);datetime(2024,1,1)]; CallSchedule = timetable(ExerciseDates,Strike,'VariableNames',{'Strike Schedule'}); CallableBond(2) = setCallExercisePolicy(CallableBond(2), CallSchedule)
CallableBond=3×1 OptionEmbeddedFixedBond array with properties:
CouponRate
Period
Basis
EndMonthRule
Principal
DaycountAdjustedCashFlow
BusinessDayConvention
Holidays
IssueDate
FirstCouponDate
LastCouponDate
StartDate
Maturity
CallDates
PutDates
CallSchedule
PutSchedule
CallExerciseStyle
PutExerciseStyle
Name
CallableBond.CallExerciseStyle
ans = "american"
ans = "bermudan"
ans = "american"
Input Arguments
Instrument object, specified as a previously created OptionEmbeddedFixedBond, OptionEmbeddedFloatBond, or ConvertibleBond
object instrument object.
Note
If the OptionEmbeddedFixedBond,
OptionEmbeddedFloatBond, or ConvertibleBond
instrument object is a vector of instruments, you must use
setCallExercisePolicy separately with each instrument.
Data Types: object
Call exercise schedule, specified as a timetable. The timetable must contain both
the exerciseDate value and Strike
information.
Data Types: timetable
Call option exercise style, specified as a scalar string or character vector.
Data Types: string | char
Output Arguments
Updated instrument, returned as an object.
Version History
Introduced in R2020b
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)