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.

adline

Accumulation/Distribution line

Syntax

adln = adline(highp,lowp,closep,tvolume)
adln = adline([highp lowp closep tvolume])
adlnts = adline(tsobj)
adlnts = adline(tsobj,'ParameterName',ParameterValue, ...)

Arguments

highp

High price (vector)

lowp

Low price (vector)

closep

Closing price (vector)

tvolume

Volume traded (vector)

tsobj

Time series object

Description

adln = adline(highp,lowp,closep,tvolume) computes the Accumulation/Distribution line for a set of stock price and volume traded data. The prices required for this function are the high (highp), low (lowp), and closing (closep) prices.

adln = adline([highp lowp closep tvolume]) accepts a four-column matrix as input. The first column contains the high prices, the second contains the low prices, the third contains the closing prices, and the fourth contains the volume traded.

adlnts = adline(tsobj) computes the Williams Accumulation/Distribution line for a set of stock price data contained in the financial time series object tsobj. The object must contain the high, low, and closing prices plus the volume traded. The function assumes that the series are named High, Low, Close, and Volume. All are required. adlnts is a financial time series object with the same dates as tsobj but with a single series named ADLine.

adlnts = adline(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 Accumulation/Distribution line for Disney stock and plot the results.

load disney.mat
dis_ADLine = adline(dis);
plot(dis_ADLine)
title('Accumulation/Distribution Line for Disney')

References

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

Introduced before R2006a

Was this topic helpful?