Code covered by the BSD License  

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Black1976 swaption pricing for a bespoke deal

Be the first to rate this file! 9 Downloads (last 30 days) File Size: 2.4 KB File ID: #41563 Version: 1.0

Black1976 swaption pricing for a bespoke deal



This function prices a swaption portfolio with any cash-low structure

| Watch this File

File Information

% This function prices swaptions in the Black1976 model for any given cash-flow
% structure. It assumes (without checking) that the matrix U is an n by 5 (at least)
% matrix containing, respectively by column, the cash-flow code, the payment date
% (matlab format), the cash-flow (negative for fixed payer and positive otherwise),
% the coupon rate and finally the day-count basis. The earliest cash-flow is assumed to be
% a no coupon payment used to determine the settlement date of the swap. The coupon
% rate is expected to be constant and the strike is determined by the last coupon rate
% in line. The current date is the settlement date of the curve object, while the
% volatility matrix is assumed to be 10y by 10y (Exp-by-Mat) volatility surface.
% The option exposure is assumed to be long (option buyer) with the convention that
% a negative fixed leg cash-flow (fix payer) entails call option exposure.
% On the other side, a positive fixed leg cash-flow (fix reciever) is associated
% to a long put swaption exposure.
% input
% U : code, date, principal, coupon, basis
% V : volatility matrix
% Curve : interest rate curve object


This file inspired Algorithmic Trading | Wfa Toolbox Walk Forward Analysis Toolbox.

Required Products Financial Derivatives Toolbox
Financial Toolbox
Fixed-Income Toolbox
Financial Instruments Toolbox
MATLAB release MATLAB 7.14 (R2012a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.

Contact us