@deprecated(msg=DEPRECATION_WARNING)<EOL>def stability_of_timeseries(returns):
return ep.stability_of_timeseries(returns)<EOL>
Determines R-squared of a linear fit to the cumulative
log returns. Computes an ordinary least squares linear fit,
and returns R-squared.

Parameters
----------
returns : pd.Series
    Daily returns of the strategy, noncumulative.
    - See full explanation in :func:`~pyfolio.timeseries.cum_returns`.

Returns
-------
float
    R-squared.