Skip to main content

adosc

Calculate the Accumulation/Distribution Oscillator.

Also known as the Chaikin Oscillator.

Essentially a momentum indicator, but of the Accumulation-Distribution line rather than merely price. It looks at both the strength of price moves and the underlying buying and selling pressure during a given time period. The oscillator reading above zero indicates net buying pressure, while one below zero registers net selling pressure. Divergence between the indicator and pure price moves are the most common signals from the indicator, and often flag market turning points.

Example​

from openbb import obb

stock_data = obb.equity.price.historical(symbol='TSLA', start_date='2023-01-01', provider='fmp')
adosc_data = obb.technical.adosc(data=stock_data.results, fast=3, slow=10, offset=0)

Parameters​

NameTypeDescriptionDefaultOptional
dataList[Data]List of data to be used for the calculation.False
indexstrdateFalse
fastintNumber of periods to be used for the fast calculation, by default 3.3False
slowintNumber of periods to be used for the slow calculation, by default 10.10False
offsetintOffset to be used for the calculation, by default 0.0False

Returns​

OBBject
results : List[Data]
OBBject[List[Data]]