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

Close-button

Stock Tracker

  • Created by: James Kristoff
  • Last ran: about 8 hours ago.
  • Auto-run in: about 16 hours.
  • Created on: 24 Jul 2012

774

data points

Description:

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

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

Time Recorded (time1769) Data (data1769)
21 Sep 2014 10:15:27 [NaN]
20 Sep 2014 10:15:29 [-0.6 -0.41 0.45 -0.05 -0.501]
19 Sep 2014 10:15:28 [0.37 0.29 0.64 0.5 0.382]
18 Sep 2014 10:15:27 [-0.1 -0.12 0.18 0.13 -0.0765]
17 Sep 2014 10:15:29 [0.6 0.35 1.1 0.75 0.6075]
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