Market Thermometer

Calculate Elder’s Market Thermometer: how far each period’s range pushes outside that of the previous period, which shows how hot or quiet the market is.

The Market Thermometer measures how far each period’s range pushes outside the previous one: the larger of the rise of the high above the previous high and the fall of the low below the previous low, or 0 for an inside period. Elder compares it with its Exponential Moving Average: a temperature far above the average (Elder uses three times) marks a burst of volatility in which to take profits, and several periods below the average a quiet market that often precedes an explosive move.

The formula is as follows:

\[\text{Thermometer} = \max(\text{High} - \text{Previous High},\; \text{Previous Low} - \text{Low},\; 0)\] \[\text{Thermometer Average} = \operatorname{EMA}(\text{Thermometer},\; \text{window})\]

Also known as: THERMO, Elder’s thermometer, market temperature.

Example · GLD · 2025

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

from financetoolkit import Toolkit

toolkit = Toolkit(
    tickers=["GLD"],
    api_key="FINANCIAL_MODELING_PREP_KEY",
    start_date="2025-01-01",
    end_date="2025-12-31",
)

toolkit.technicals.get_market_thermometer().xs("GLD", level=1, axis="columns")

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

How hot or quiet was the market for the SPDR Gold Shares ETF in 2025, according to Elder's Market Thermometer?

Which returns:

Parameters

get_market_thermometer accepts the following parameters.

ParameterTypeDescriptionExample
periodstrThe time period to consider for historical data. Options are: “intraday” (intraday prices), “daily” (daily prices), “weekly” (weekly prices), “monthly” (monthly prices), “quarterly” (quarterly prices), “yearly” (yearly prices). Defaults to “daily”."weekly"
close_columnstrThe column name for closing prices in the historical data. Defaults to “Adj Close”, in which case the open, high and low prices are adjusted for dividends in the same way."Close"
windowintThe number of periods of the EMA. Defaults to 22, as defined by Elder.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 Thermometer and its average. 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
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 Elder, A. (2002). “Come Into My Trading Room.” John Wiley & Sons.
  • Library Shares similar logic as pandas-ta-classic’s thermo
Share