Convert date and time formats, taking into account business day conventions, day count conventions, custom trading calendars, and coupon payment dates. Use timetable capabilities in MATLAB® to remove entries with missing data and outliers and to resample, aggregate, and synchronize time-associated data.
Technical Indicators and Financial Charts
Compute technical indicators (including moving averages, momentums, oscillators, volume indicators, and rate of change) and create financial charts (including candlestick, open-high-low-close, and Bollinger band charts).
Investment Performance Metrics
Evaluate investment performance using built-in functions for calculating metrics such as Sharpe ratio, information ratio, tracking error, risk-adjusted return, sample lower partial moments, expected lower partial moments, maximum drawdown, and expected maximum drawdown.
Portfolio Optimization Approaches
Perform mean-variance, mean absolute deviation (MAD), and conditional value at risk (CVaR) portfolio optimizations.
Efficient Portfolios and Efficient Frontiers
Estimate the efficient portfolio and its weights that maximize Sharpe ratio, visualize efficient frontiers, and calculate portfolio risks, including portfolio standard deviation, MAD, VaR, and CVaR.
Portfolio Constraints and Transaction Costs
Apply portfolio optimization constraints, including tracking error, linear inequality, linear equality, bound, budget, group, group ratio, average turnover, one-way turnover, minimum number of assets, and maximum number of assets. Incorporate proportional or fixed transaction costs on either gross or net portfolio return optimization.
Strategy Backtesting Framework
Define investment strategies and use the backtesting framework to run backtests, analyze results, and generate performance metrics for your strategies from historical or simulated market data. Incorporate technical indicators, sentiment, and other trading signals into your strategies. The framework also supports custom transaction costs, expanding or rolling lookback windows, margin trading, and long/short portfolios.
Cash Flow Analysis
Use Financial Toolbox to calculate present and future values; determine nominal, effective, and modified internal rates of return; calculate amortization and depreciation; and determine the periodic interest rate paid on loans or annuities.
Fixed-Income Analysis and Option Pricing
Calculate price, yield-to-maturity, duration, and convexity of fixed-income securities. Compute analytics such as complete cash flow date, cash flow amounts, and time-to-cash-flow mapping for bonds. Calculate option prices and greeks using Black and Black-Scholes formulas. You can design, price, and hedge complex financial instruments with Financial Instruments Toolbox™.
Monte Carlo Simulation
Generate random variables for Monte Carlo simulations based on a variety of stochastic differential equation (SDE) models, including Brownian motion, geometric Brownian motion, constant elasticity of variance, Cox-Ingersoll-Ross, Hull-White/Vasicek, and Heston.