| Financial Time Series Toolbox | ![]() |
Syntax
Arguments
Description
acc = tsaccel(data, nperiods, datatype)
calculates the acceleration of a data series, essentially the difference of the current momentum with the momentum some number of periods ago. If nperiods is specified, tsaccel calculates the acceleration of a data series data with time distance of nperiods periods.
accts = tsaccel(tsobj, nperiods, datatype)
calculates the acceleration of the data series in the financial time series object tsobj, essentially the difference of the current momentum with the momentum some number of periods ago. Each data series in tsobj is treated individually. accts is a financial time series object with similar dates and data series names as tsobj.
Examples
Compute the acceleration for Disney stock and plot the results:
load disney.mat dis = rmfield(dis,'VOLUME') % remove VOLUME field dis_Accel = tsaccel(dis); plot(dis_Accel) title('Acceleration for Disney')
See Also
Reference
Kaufman, P. J., The New Commodity Trading Systems and Methods, New York: John Wiley & Sons, 1987.
| toweekly | tsmom | ![]() |