Signal-to-Noise Ratio (SNR)

Calculate the Signal-to-Noise Ratio (SNR): the net move of the close over a window divided by the Average True Range, which shows how cleanly the price trends.

The Signal-to-Noise Ratio divides the net move of the close over the window (the signal) by the Average True Range over the same window (the noise). A ratio of 5 means the price moved five times its average range in window periods, a market that trends cleanly, while a ratio near 0 means the price moved a lot but went nowhere. Skeggs and Hill use it to measure how much trend a market offers a trend follower.

The formula is as follows:

\[\text{Signal} = \left|\operatorname{Close}(t) - \operatorname{Close}(t - \text{window})\right|\] \[\text{Noise} = \operatorname{ATR}(\text{window}),\;\; \text{Wilder's Smoothed Moving Average of the True Range}\] \[\text{SNR} = \frac{\text{Signal}}{\text{Noise}}\]

Because the ATR includes the gaps between periods, the noise covers the overnight moves a close-to-close measure would miss. The ratio says how far the price trended, not in which direction.

Also known as: SNR, signal to noise ratio, trend strength ratio.

Example · AAPL, MSFT · 2021 to 2025

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

from financetoolkit import Toolkit

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

toolkit.technicals.get_signal_to_noise_ratio()

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

How large was the trend of Apple and Microsoft compared with their noise in 2025, measured by the signal-to-noise ratio?

Which returns:

Parameters

get_signal_to_noise_ratio 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 high and low prices are adjusted for dividends in the same way."Close"
windowintThe number of periods of the move and of the Average True Range. Defaults to 14, the default window of the Average True Range.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 indicator 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
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 Skeggs, J. and Hill, A. (2015). “Back in Black Part 2: The Opportunity Set for Trend Following.” Man AHL.
  • Library Referenced against TTR (R)’s SNR
Share