52-Week High Ratio

Calculate the 52-Week High Ratio of each ticker: its price as a fraction of its highest price of the last year, how close it trades to the anchor investors compare it with, the momentum signal of George and Hwang (2004).

Investors anchor on the 52-week high: near it they are reluctant to bid the price higher on good news, and far below it they are slow to let it fall further on bad news, so the news is absorbed slowly. In the paper stocks close to their 52-week high kept outperforming those far from it over the next 6 to 12 months, the returns did not reverse in the long run, and the ratio explained a large part of the profits of ordinary price momentum.

The formula is as follows:

\[\text{High Ratio} = \frac{\text{Close}_{t}}{\text{Max}(\text{Close}, 252)}\]

Where High Ratio is the 52-Week High Ratio and Max(Close, 252) the highest close of the last 252 trading days, day t included. The ratio is at most 1, which is a new 52-week high. Each period shows the ratio of its last trading day, as George and Hwang rank the stocks at the end of every month.

Also known as: 52-week high, 52WH, nearness to the 52-week high, price to 52-week high, anchoring.

Example · AAPL, TSLA, KO · 2024 to 2025

Install the Finance Toolkit with pip install financetoolkit -U, then call get_52_week_high_ratio:

from financetoolkit import Toolkit

toolkit = Toolkit(
    ["AAPL", "TSLA", "KO"],
    api_key="FINANCIAL_MODELING_PREP_KEY",
    start_date="2024-01-01",
    end_date="2025-06-30",
)

toolkit.performance.get_52_week_high_ratio()

Or, with the Finance Toolkit MCP set up, ask an AI assistant such as Claude or ChatGPT:

How close did Apple, Tesla and Coca-Cola trade to their 52-week high at the end of each month from December 2024 to June 2025?

Which returns:

Parameters

get_52_week_high_ratio accepts the following parameters.

ParameterTypeDescriptionExample
periodstrThe period whose last trading day is shown. Options are: “daily”, “weekly”, “monthly”, “quarterly”, “yearly”. Defaults to “monthly”."weekly"
windowintThe number of trading days of the high, at least 1. Defaults to 252, a year.20
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 values. 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
transformstr | list[str] | NoneTime series steps applied in order, such as “sma:12” (moving average), “ema:12”, “std:12”, “zscore:60”, “percentile:120”, “yoy”, “pct_change:3,annualize:3”, “log”, “diff”, “cumsum” or “hp_trend” and “hp_cycle” (Hodrick-Prescott), before growth. A window needs that many periods of history, so the first periods can be empty. Defaults to None.None
show_columnsstr | list[str] | NoneThe columns to keep, a name or a list of names, matched on every column level, or the rows when no column has those names (such as the line items of a financial statement). Names that do not exist are logged, and when none exist the result is returned in full. Defaults to None, which keeps every column.None, which keeps every column

References

  • Paper George, T.J. and Hwang, C.Y. (2004). “The 52-Week High and Momentum Investing.” The Journal of Finance, 59(5), 2145-2176.
Share