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

4 Ansichten (letzte 30 Tage)
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

Antworten (1)

Shantanu Dixit
Shantanu Dixit am 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:

Kategorien

Mehr zu Food Sciences finden Sie in Help Center und File Exchange

Produkte


Version

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by