Elder Impulse

Calculate Elder’s Impulse System: whether the trend and the momentum both rise (1, a green bar), both fall (-1, a red bar) or disagree (0, a blue bar).

The Impulse System of Elder (2002) combines the slope of an exponential moving average, the inertia of the trend, with the slope of the MACD histogram, the push of the bulls or bears. When both rise the impulse is up and Elder does not sell short; when both fall it is down and he does not buy; otherwise either side is allowed. It is a censorship system: it says which trades not to take rather than when to take one.

The Impulse is 1 when both the EMA Change and the Histogram Change are positive, -1 when both are negative and 0 otherwise.

The formula is as follows:

\[\text{EMA} = \text{EMA}(\text{Close}, \texttt{window})\] \[\text{Histogram} = \text{MACD Histogram}(\text{Close}, \texttt{short\_window}, \texttt{long\_window}, \texttt{signal\_window})\] \[\text{EMA Change} = \text{EMA} - \text{EMA}_{t-1}\] \[\text{Histogram Change} = \text{Histogram} - \text{Histogram}_{t-1}\]

Also known as: Elder Impulse System, Impulse System, Elder bars, impulse bars.

Example · AAPL, MSFT · 2021 to 2025

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

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_elder_impulse()

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

What did the Elder Impulse System signal for Apple, Microsoft and the S&P 500 ETF over the last five trading days of 2025, with data from 2021?

Which returns:

Parameters

get_elder_impulse 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”."Close"
windowintThe number of periods of the EMA. Defaults to 13, as Elder uses.20
short_windowintThe number of periods of the short EMA of the MACD. Defaults to 12.12
long_windowintThe number of periods of the long EMA of the MACD. Defaults to 26.26
signal_windowintThe number of periods of the MACD signal line. Defaults to 9.9
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 impulse. 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 Elder, A. (2002). “Come Into My Trading Room: A Complete Guide to Trading.” John Wiley & Sons.
  • Paper StockCharts ChartSchool, “Elder Impulse System”.
Share