OptBinVal(iS0, iVola, iRate, iStrike, iType, iClass, iExpiry, iNoSteps)
This is a simple (yet quite useful for learning purposes) function that calculates the price of a plain vanilla option (american, european, call and / or put) by using binomial trees.
The output is made of:
- Stock price paths.
- Option price paths.
- Option price at inception.
- Delta values for each node.
Any question about the code will be pleasantly answered @ mariosantossanz89@gmail.com
Cite As
Mario Santos (2024). OptBinVal(iS0, iVola, iRate, iStrike, iType, iClass, iExpiry, iNoSteps) (https://www.mathworks.com/matlabcentral/fileexchange/53661-optbinval-is0-ivola-irate-istrike-itype-iclass-iexpiry-inosteps), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- Computational Finance > Financial Instruments Toolbox > Price Instruments Using Functions > Equity Derivatives >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |