Calculate the Sterling Ratio of an investment portfolio or asset’s returns.

The Sterling Ratio is a risk-adjusted return metric that divides the return of an investment portfolio or asset over each period (a calendar-year return for period=’yearly’, a quarterly return for period=’quarterly’) by its Average Drawdown plus a fixed adjustment (conventionally 10%), providing insight into the return achieved relative to the typical depth of its drawdowns rather than only the single worst one (as with the Calmar Ratio).

The formula is as follows:

\[\text{Sterling Ratio} = \text{Return} / (| \text{Average Drawdown} | + \text{Adjustment})\]

Where the Average Drawdown is the mean drawdown from the running peak over all observations on which the asset is below that peak (by default every such day within the period), not the average of the largest drawdowns.

Also known as: Sterling-Calmar ratio.

Sterling Ratio in Python or via the MCP

Install the Finance Toolkit with:

pip install financetoolkit -U

Then call get_sterling_ratio as shown below.

from financetoolkit import Toolkit

toolkit = Toolkit(
    ["NEE", "DUK", "SO"],
    api_key="FINANCIAL_MODELING_PREP_KEY",
    start_date="2020-01-01",
    end_date="2025-12-31",
)

toolkit.performance.get_sterling_ratio()

Or, after setting up the Finance Toolkit MCP, ask:

What was the Sterling ratio of NextEra Energy, Duke Energy and Southern Company in each year from 2021 to 2025?

Which returns:

Date NEE DUK SO
2021 1.2842 1.4182 1.2009
2022 -0.3726 0.1186 0.4819
2023 -0.8979 -0.0838 0.1342
2024 1.307 1.1541 1.5685
2025 0.9868 0.9407 0.6777

Parameters

get_sterling_ratio accepts the following parameters.

ParameterTypeDescriptionExample
periodstrThe period to use for the calculation. Defaults to “quarterly” if the Toolkit is initialised with quarterly=True, otherwise “yearly”."quarterly"
within_periodboolWhether to calculate the Average Drawdown within the specified period or for the entire period. Thus whether to look at the Average Drawdown within a specific year (if period = ‘yearly’) or look at the entirety of all years. Defaults to True.False
adjustmentfloatThe fixed adjustment added to the Average Drawdown, conventionally 0.1 (10%). Defaults to 0.1.0.05
roundingint | NoneThe number of decimals to round the results to. Defaults to None, which uses the rounding of the Toolkit (4 unless set otherwise).2
growthboolWhether to calculate the growth of the ratios. Defaults to False.True
lagint | list[int]The lag to use for the growth calculation. Defaults to 1.4
standardizeboolWhether to standardize (Z-Score) the result. When combined with growth=True, standardizes the growth values instead of the raw values. Defaults to False.True
Share