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

Close-button

Stock Tracker

892

data points

Description:

This is a trend to track several stocks in which I invest.

Recently Collected Data (last 5 of 892) Show All Data

Time Recorded (time1769) Data (data1769)
31 Jan 2015 11:15:13 [-1.9 -0.73 -0.77 -1.29 -1.696]
30 Jan 2015 11:15:13 [-0.2 0.67 0.97 0.96 0.00349999999999998]
29 Jan 2015 11:15:17 [-0.98 -1.01 -1.15 -1.34 -1.0095]
28 Jan 2015 11:15:13 [-0.31 -0.41 -1.33 -1.34 -0.4225]
27 Jan 2015 11:15:14 [0.06 0.29 0.19 0.26 0.0995]
busDay = weekday(now-1);
if(busDay > 1 && busDay < 7)
  stockSyms = {'ODVYX';'OAKBX';'MLAIX';'VINIX'};

  diff = zeros(4,2);

  for i = 1:length(stockSyms)
    url{i} = ['http://www.google.com/finance?q=',...
               stockSyms{i}];
    diff(i,:) = urlfilter(url{i},'id-price-change', 2);
  end

  WeightedAvg = sum(diff(:,2).*[0.8;0.1;0.05;0.05]);

  updatetrend([diff(:,2); WeightedAvg]);
else
  updatetrend(NaN);
end
Tags:

    Add Tags


    0 comments