Chaikin oscillator


chosc = chaikosc(highp, lowp, closep, tvolume)
chosc = chaikosc([highp lowp closep tvolume])
choscts = chaikosc(tsobj)
choscts = chaikosc(tsobj, ParameterName, ParameterValue, ... )



High price (vector)


Low price (vector)


Closing price (vector)


Volume traded (vector)


Financial time series object


The Chaikin oscillator is calculated by subtracting the 10-period exponential moving average of the Accumulation/Distribution (A/D) line from the three-period exponential moving average of the A/D line.

chosc = chaikosc(highp, lowp, closep, tvolume) calculates the Chaikin oscillator (vector), chosc, for the set of stock price and volume traded data (tvolume). The required inputs are the prices for the high (highp), low (lowp), and closing (closep) prices and the volume traded data (tvolume).

chosc = chaikosc([highp lowp closep tvolume]) accepts a four-column matrix as input.

choscts = chaikosc(tsobj) calculates the Chaikin Oscillator, choscts, from the data contained in the financial time series object tsobj. tsobj must at least contain data series with names High, Low, Close, and Volume. These series must represent the high, low, and closing prices, plus the volume traded. choscts is a financial time series object with the same dates as tsobj but only one series named ChaikOsc.

choscts = chaikosc(tsobj, ParameterName, ParameterValue, ...) accepts parameter name/parameter value pairs as input. These pairs specify the name(s) for the required data series if it is different from the expected default name(s). Valid parameter names are

  • HighName: high prices series name

  • LowName: low prices series name

  • CloseName: closing prices series name

  • VolumeName: volume traded series name

Parameter values are the strings that represent the valid parameter names.


expand all

Compute the Chaikin Oscillator

This example shows how to compute the Chaikin oscillator for Disney stock and plot the results.

load disney.mat
dis_CHAIKosc = chaikosc(dis);
title('Chaikin Oscillator for Disney')


Achelis, Steven B., Technical Analysis from A to Z, Second printing, McGraw-Hill, 1995, pp. 91-94.

See Also

Was this topic helpful?