Log or simple returns in the backtest results of the financial toolbox
5 views (last 30 days)
Show older comments
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
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1481421/image.jpeg)
0 Comments
Answers (1)
Shantanu Dixit
on 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:
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!