willad

Williams Accumulation/Distribution line

willad has been partially removed and will no longer accept a fints object (tsobj) argument. Use a matrix, timetable, or table instead for financial time series.

Use fts2timetable to convert a fints object to a timetable object.

Syntax

WADLine = willad(Data)

Description

example

WADLine = willad(Data) calculates the Williams Accumulation/Distribution line from the series of high, low, and closing prices.

Examples

collapse all

Load the file SimulatedStock.mat, which provides a timetable (TMW) for financial data for TMW stock.

load SimulatedStock.mat
WADLine = willad(TMW);
plot(WADLine.Time,WADLine.WillAD)
title('Williams A/D Line for TMW')

Input Arguments

collapse all

Data for high, low, and closing prices, specified as a matrix, table, or timetable. For matrix input, Data is an M-by-3 matrix of high, low, and closing prices stored in the corresponding columns. Timetables and tables with M rows must contain variables named 'High', 'Low', and 'Close' (case insensitive).

Data Types: double | table | timetable

Output Arguments

collapse all

Williams Accumulation/Distribution line, returned with the same number of rows (M) and the same type (matrix, table, or timetable) as the input Data.

References

[1] Achelis, S. B. Technical Analysis from A to Z. Second Edition. McGraw-Hill, 1995, pp. 314–315.

Introduced before R2006a