| Financial Toolbox™ | ![]() |
wcls = wclose(highp, lowp, closep) wcls = wclose([highp lowp closep]) wclsts = wclose(tsobj) wclsts = wclose(tsobj, ParameterName, ParameterValue, ...)
highp | High price (vector). |
lowp | Low price (vector). |
closep | Closing price (vector). |
tsobj | Financial time series object. |
The weighted close price is the average of twice the closing price plus the high and low prices.
wcls = wclose(highp, lowp, closep) calculates the weighted close prices wcls based on the high (highp), low (lowp), and closing (closep) prices per period.
wcls = wclose([highp lowp closep]) accepts a three-column matrix consisting of the high, low, and closing prices, in that order.
wclsts = wclose(tsobj) computes the weighted close prices 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. wclsts is a financial time series object of the same dates as tsobj and contains the data series named WClose.
wclsts = wclose(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
Parameter values are the strings that represent the valid parameter names.
Compute the weighted closing prices for Disney stock and plot the results:
load disney.mat
dis_Wclose = wclose(dis)
plot(dis_Wclose)
title('Weighted Closing Prices for Disney')

Achelis, Steven B., Technical Analysis from A to Z, Second printing, McGraw-Hill, 1995, pp. 312 - 313.
![]() | volroc | weekday | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |