| Financial Time Series | ![]() |
Syntax
chvol = chaikvolat(highp, lowp) chvol = chaikvolat([highp lowp])chvol = chaikvolat(high, lowp, nperdiff, manper)chvol = chaikvolat([high lowp], nperdiff, manper)chvts = chaikvolat(tsobj) chvts = chaikvolat(tsobj, nperdiff, manper, ParameterName, ParameterValue, ...)
Arguments
Description
chvol = chaikvolat(highp, lowp)
calculates the Chaikin volatility from the series of stock prices, highp and lowp. chvol is a vector containing the Chaikin volatility values, calculated on a 10-period exponential moving average and 10-period period difference.
chvol = chaikvolat([highp lowp])
accepts a two-column matrix as the input.
manually sets the period difference chvol = chaikvolat(high, lowp, nperdiff, manper)
nperdiff and the length of the exponential moving average manper in periods.
accepts a two-column matrix as the first input. chvol = chaikvolat([high lowp], nperdiff, manper)
chvts = chaikvolat(tsobj)
calculates the Chaikin volatility from the financial time series object tsobj. The object must contain at least two series named High and Low, representing the high and low prices per period. chvts is a financial time series object containing the Chaikin volatility values, based on a 10-period exponential moving average and 10-period period difference. chvts has the same dates as tsobj and a series called ChaikVol.
chvts = chaikvolat(tsobj, nperdiff, manper, 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.
nperdiff, the period difference, and manper, the length of the exponential moving average in periods, can also be set with this form of chaikvolat.
Example
Compute the Chaikin volatility for Disney stock and plot the results.
load disney.mat
dis_CHAIKvol = chaikvolat(dis)
plot(dis_CHAIKvol)
title('Chaikin Volatility for Disney')
See Also
Reference
Achelis, Steven B., Technical Analysis From A To Z, Second Printing, McGraw-Hill, 1995, pg. 304 - 305
| chaikosc | chartfts | ![]() |