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

load SimulatedStock.mat
oscillator = chaikosc(TMW);
plot(oscillator.Time, oscillator.ChaikinOscillator)
title('Chaikin Oscillator for TMW')

% Copyright 2012 The MathWorks, Inc.