Question about Sharpe Ratio calculation
Created at 11 Oct 2022, 08:27
Question about Sharpe Ratio calculation
11 Oct 2022, 08:27
Hello Spotware,
I've been trying to replicate the result of Sharpe Ratio given by the backtester, but I've been unable to come with the same result, the formula I found online is:
So my questions are:
1 - What value are you giving for "risk-free rate of return"
2 - The standard deviation is calculated from returns trade by trade, or maybe returns on a monthly, weekly or even daily basis?
Regards,
ME-Pepper
12 Oct 2022, 15:42 ( Updated at: 21 Dec 2023, 09:22 )
RE: Answer about Sharpe and Sortino Ratio calculation
This will give you the exact same results as Spotware is calculating it.
You are welcome
PS: The secret is the division by (vals.Count() - 1) and not just vals.Count for the standard deviation as described here:
(look for "sample standard deviation"
Waxy said:
@ME-Pepper