Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

chaikosc

Chaikin oscillator

Syntax

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

Arguments

highp

High price (vector)

lowp

Low price (vector)

closep

Closing price (vector)

tvolume

Volume traded (vector)

tsobj

Financial time series object

Description

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 character vectors that represent the valid parameter names.

Examples

collapse all

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

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

Related Examples

References

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

See Also

Introduced before R2006a

Was this topic helpful?