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

3 次查看(过去 30 天)
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

回答(1 个)

Shantanu Dixit
Shantanu Dixit 2024-9-4
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:

类别

Help CenterFile Exchange 中查找有关 Food Sciences 的更多信息

产品


版本

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by