Since you are new, let us show you how Trendy works.

Close-button

Google vs. Apple Stock Prices (normalized)

  • Created by: Rob Nickerson
  • Latest result: Plot created
  • Created on: 17 Feb 2012
  • Liked: 3 times

Plot to show Apple's stock price vs. Google's. I'd like to throw some other indicators in there as well...

Plot Image
% Google Stock Price
%   time vector is: time1453
%   data vector is: data1453
% Apple Stock Price
%   time vector is: time1454
%   data vector is: data1454

horizon = 90;

keep = time1453 > (now-horizon);
time1453 = time1453(keep);
data1453 = data1453(keep);

keep = time1454 > (now-horizon);
time1454 = time1454(keep);
data1454 = data1454(keep);

hold all
plot(time1454,100*data1454/data1454(1))
plot(time1453,100*data1453/data1453(1))
hold off
datetick
title('Apple vs. Google: Normalized Stock Price')
ylabel(sprintf('Price (price on %s = 100)',datestr(now-horizon,1)))
legend({'Apple','Google'},'Location','NorthWest')
Tags:

Add Tags


2 comments

Erik about 1 month ago

Sharp drops are due to stock splits. Probably should take that into account in the plotting.

John 28 days ago

Normalised to what?