R2022a

New Features, Bug Fixes, Compatibility Considerations

SDE Framework: Perform Quasi-Monte Carlo simulation

You can perform Quasi-Monte Carlo simulation using the name-value arguments for MonteCarloMethod and QuasiSequence for the following stochastic differential equation (SDE) objects and their associated methods:

Backtesting Framework: Backtesting enhancements

The backtesting framework has the following enhancements:

  • Specify time varying cash rates of return.

    The backtestEngine name-value arguments for RiskFreeRate and CashBorrowRate support a timetable data type.

  • Control how the backtesting framework handles missing rebalance dates.

    The backtestEngine name-value argument for 'DateAdjustment' enables you to control the date handling behavior for rebalance dates that are missing from the asset prices timetable. If a rebalance date falls on a holiday, you can specify the "Next" or "None" option for the name-value argument for 'DateAdjustment'.

  • Include NaN values in their asset price data.

    The backtest framework supports NaNs in the assetPrices timetable and NaNs and <missing> in the signalData timetable.

Backtesting Framework Example: Backtest with Deep Learning strategies

The Backtest Strategies Using Deep Learning example shows how to construct trading strategies using a Deep Learning Toolbox™ model and then backtest the strategies using the backtesting framework.

Portfolio Management: Manage a risk parity portfolio

There are two functions for managing a risk parity portfolio:

The following examples demonstrate using portfolioRiskContribution and riskBudgetingPortfolio to manage a risk parity portfolio:

Portfolio Management: Portfolio enhancements

There are the following enhancements:

Data Transformation: Negative prices example

The Financial Toolbox™ functions tick2ret and ret2tick support negative prices. This capability has been available since the release of these functions. The Returns with Negative Prices example shows how the functions mathematically treat negative price inputs. Also, the example shows how to interpret results from computations involving negative prices.

 Date and Time: Move of date and time functions to MATLAB

The following date and time functions are removed from Financial Toolbox and moved to MATLAB®: