Negative rates in blsprice
1 回表示 (過去 30 日間)
古いコメントを表示
Why is negative rates not allowed in function 'blsprice'?
0 件のコメント
回答 (1 件)
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
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!