Hi everyone! I am trying to understand how the Risk-Reward Ratio is calculated in the backtest result. According to here, it is the "Measure of the relation between the risk inherent in a trading the system compared to its potential gain. Higher is better. Calculated as slope of equity line (expected annual return) divided by its standard error."

Below is an example backtest result:

The standard error is 65208.96. What is the expected annual return? Is it CAR? If [risk reward ratio = expected annual return / standard error] then expected annual return is 65208.96 x 1.62 = 105638.52
So it is not CAR as CAR is 1.83%. How is this expected annual return calculated?

@Tomasz Thank you so much for the full formula. If the backtest is run on DAILY data and it covered 200 days, then 365.0 * iTotalBars / iTotalDays => 365.0 * 200 / 200 = 365

For daily data the result is multiplied by 365 meaning the formula is as following?
365 * (Linear Regression Slope of Equity Line) / (Standard Error of Equity Line);