%% Calculate the Accumulation/Distribution Oscillator for a Stock
% Load the file SimulatedStock.mat, which provides a timetable (TMW) for financial data for TMW stock.

load SimulatedStock.mat
ADOsc = adosc(TMW);
plot(ADOsc.dates, ADOsc.ADOscillator)
title('A/D Oscillator for TMW')

% Copyright 2012 The MathWorks, Inc.