Products & Services Solutions Academia Support User Community Company

Learn more about Financial Toolbox   

willad - Williams Accumulation/Distribution line

Syntax

wadl = willad(highp, lowp, closep)
wadl = willad([highp lowp closep]) 
wadlts = willad(tsobj) 
wadlts = willad(tsobj, ParameterName, ParameterValue, ...)

Arguments

highp

High price (vector)

lowp

Low price (vector)

closep

Closing price (vector)

tsobj

Time series object

Description

wadl = willad(highp, lowp, closep) computes the Williams Accumulation/Distribution line for a set of stock price data. The prices needed for this function are the high (highp), low (lowp), and closing (closep) prices. All three are required.

wadl = willad([highp lowp closep]) accepts a three-column matrix of prices as input. The first column contains the high prices, the second contains the low prices, and the third contains the closing prices.

wadlts = willad(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 needed for this function. The function assumes that the series are named High, Low, and Close. All three are required. wadlts is a financial time series object with the same dates as tsobj and a single data series named WillAD.

wadlts = willad(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

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

Examples

Compute the Williams A/D line for Disney stock and plot the results:

load disney.mat
dis_Willad = willad(dis)
plot(dis_Willad)
title('Williams A/D Line for Disney')

References

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

See Also

adline, adosc, willpctr

  


Free Interactive Computational Finance CD

View demos and recorded presentations led by industry experts.

Now On Demand
Network with industry peers and learn the latest applications of the leading software product for computational finance.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS