You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Function BUTTERFLY (named after the strategy shown on the screenshot) aims to help students and instructors of finance visualize payoffs of simple option strategies. The function allows constructing a portfolio of n < 9 securities, including a (zero-dividend) stock, a (zero-coupon) bond, a forward contract, and a European call or put stock option, and plots portfolio's terminal payoff, as well as time-T value of cash flows at t = 0,T , i.e. terminal payoff adjusted for (accrued) initial cash flow. Discounting and valuation occur as if in a Black-Scholes world.
Cite As
Dimitri Shvorob (2026). Visualize payoffs of an option strategy (https://se.mathworks.com/matlabcentral/fileexchange/17411-visualize-payoffs-of-an-option-strategy), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired: Devise a bond maturity strategy
General Information
- Version 1.0.0.0 (5.32 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 | BSD |
