Log or simple returns in the backtest results of the financial toolbox

1 vue (au cours des 30 derniers jours)
Florent Comte
Florent Comte le 13 Sep 2023
Hi,
Is it the log returns or simple returns that are used to calculate the metrics (Sharpe Ratio, Volatility,...) in the backtest results of the financial toolbox (see below)?
Do you have the codes of the different ratios, please?
Thank you for your help.
Florent Comte

Réponses (1)

Shantanu Dixit
Shantanu Dixit le 4 Sep 2024
Hi Florent,
I also had a similar question about whether the backtest results in MATLAB's Financial Toolbox use simple returns or log returns for calculating metrics like the Sharpe Ratio and Volatility.
After reviewing the 'runBacktest' and 'backtestEngine' documentation, I found that these functions use the tick2ret function to convert price series into return series. By default, tick2ret calculates simple periodic returns unless specified otherwise. You can choose to calculate log returns by setting the 'Method' parameter to 'Continuous'. However, since the default is simple returns, we can assume that the backtest results use simple returns by default.
For more detailed information on the Sharpe Ratio and other metrics, you can refer to these resources:

Catégories

En savoir plus sur Portfolio Optimization and Asset Allocation dans Help Center et File Exchange

Produits


Version

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by