Chaikin Oscillator
Calculate the Chaikin Oscillator for a given price series.
The Chaikin Oscillator is a momentum-based indicator that combines price and volume to help identify potential trends and reversals in the market. It is calculated as the difference between the 3-day and 10-day Accumulation/Distribution Line.
The formula is as follows:
\[\text{Chaikin Oscillator} = \operatorname{EMA}(\text{short-window ADL}) - \operatorname{EMA}(\text{long-window ADL})\]Also known as: Chaikin oscillator, volume accumulation.
Chaikin Oscillator in Python or via the MCP
Install the Finance Toolkit with:
pip install financetoolkit -U
Then call get_chaikin_oscillator as shown below.
from financetoolkit import Toolkit
toolkit = Toolkit(
tickers=["QQQ"],
api_key="FINANCIAL_MODELING_PREP_KEY",
start_date="2021-01-01",
end_date="2025-12-31",
)
toolkit.technicals.get_chaikin_oscillator().tail(5)
Or, after setting up the Finance Toolkit MCP, ask:
How did the Chaikin Oscillator of the Invesco QQQ swing between buying and selling pressure from 24 to 31 December 2025?
Which returns:
| Date | QQQ | Benchmark |
|---|---|---|
| 2025-12-24 | 1.33735e+07 | 4.48979e+07 |
| 2025-12-26 | 1.24876e+07 | 4.67752e+07 |
| 2025-12-29 | 1.15765e+07 | 4.60255e+07 |
| 2025-12-30 | 1.62538e+06 | 3.30466e+07 |
| 2025-12-31 | -1.44174e+07 | 2.89497e+06 |
Parameters
get_chaikin_oscillator accepts the following parameters.
| Parameter | Type | Description | Example |
|---|---|---|---|
period | str | The time period to consider for historical data. Can be “intraday”, “daily”, “weekly”, “monthly”, “quarterly” or “yearly”. Defaults to “daily”. | "weekly" |
close_column | str | The 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" |
short_window | int | Number of periods for the short-term moving average. Defaults to 3. | 5 |
long_window | int | Number of periods for the long-term moving average. Defaults to 10. | 20 |
rounding | int | None | The number of decimals to round the results to. Defaults to None, which uses the rounding of the Toolkit (4 unless set otherwise). | 2 |
growth | bool | Whether to calculate the growth of the Chaikin Oscillator. Defaults to False. | True |
lag | int | list[int] | The lag to use for the growth calculation. Defaults to 1. | 4 |
standardize | bool | Whether to standardize (Z-Score) the result. When combined with growth=True, standardizes the growth values instead of the raw values. Defaults to False. | True |