필터 지우기
필터 지우기

Negative rates in blsprice

조회 수: 1 (최근 30일)
Esbjörn Edwardsson
Esbjörn Edwardsson 2016년 3월 15일
댓글: Saurabh Roy 2021년 6월 19일
Why is negative rates not allowed in function 'blsprice'?

답변 (1개)

Vineeth Kartha
Vineeth Kartha 2016년 3월 18일
Hi,
Negative rates are not allowed in BLSPRICE.
However, you can modify the function 'blscheck.m' called by BLSPRICE opening it in the MATLAB Editor by typing in the MATLAB Command Window:
>> edit blscheck
Then, commenting out the lines 66-69:
if any(Rate(:) < 0)
error(message('finance:blscheck:NegativeRiskFreeRate'));
end
will prevent the code from stopping when a negative rate is used in BLSPRICE.
Hope this helps.
Regards
Vineeth

카테고리

Help CenterFile Exchange에서 Price and Analyze Financial Instruments에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by