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

Close-button

Stock Tracker

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

847

data points

Description:

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

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

Time Recorded (time1769) Data (data1769)
17 Dec 2014 11:15:15 [-1.6 -0.15 -1.47 -0.85 -1.411]
16 Dec 2014 11:15:15 [-2.06 -0.41 -0.78 -0.63 -1.7595]
15 Dec 2014 11:15:13 [NaN]
14 Dec 2014 11:15:13 [NaN]
13 Dec 2014 11:15:18 [-1.35 -1.25 -1.06 -1.62 -1.339]
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