How can I price a FORWARD floating rate note by the FLOATBYZERO function in the Financial Instruments Toolbox?

1 view (last 30 days)
Hi,
My issue is to price a FORWARD floating rate note. The optional argument 'StartDate' is not accepted by this function but I can see that it is accepted in the floatbyzero function used in the swapbyzero function !
Hereunder is a portion of my code (StartDate is signaled as invalid) :
[Price,DirtyPrice,OutputCashFlows,CFlowDates] = floatbyzero(...
RateSpec, Spread, 'Settle', Maturity, ...
'Reset', FloatReset, 'Principal', Principal, 'ProjectionCurve', ProjRateSpec...
'StartDate', StartDate )
Hereunder is a copy paste of a portion of swapbyzero function source code (StartDate is validated by matlab) :
% --------------------------------------------------------------
% Find prices for each one of the instruments
% --------------------------------------------------------------
[FloatFullPrice, FloatPrice,FloatCF,FloatCFDates] = floatbyzero(FloatRateSpec, Spreads, Settle,...
Maturity, 'Reset',FloatResets, 'Basis',FloatBasis, 'Principal',Principal,...
'EndMonthRule',EOM,'LatestFloatingRate',LatestFloatingRate,...
'AdjustCashFlowsBasis',AdjustCashFlowsBasis,'Holidays',Holidays,...
'BusinessDayConvention',BusinessDayConvention,'ForwardRateSpec',ForwardRateSpec, ...
'StartDate', StartDate);
Could somebody help me please ?
Thanks in advance,
Clement.

Answers (0)

Categories

Find more on Graphics Performance in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!