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

조회 수: 1 (최근 30일)
Florent Comte
Florent Comte 2023년 9월 13일
답변: Shantanu Dixit 2024년 9월 4일
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에서 Portfolio Optimization and Asset Allocation에 대해 자세히 알아보기

제품


릴리스

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by