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

Close-button

Stock Tracker

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

742

data points

Description:

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

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

Time Recorded (time1769) Data (data1769)
20 Aug 2014 10:15:26 [0.62 0.32 0.37 0.52 0.5725]
19 Aug 2014 10:15:30 [0.59 0.68 1.02 0.86 0.634]
18 Aug 2014 10:15:25 [NaN]
17 Aug 2014 10:15:25 [NaN]
16 Aug 2014 10:15:27 [0.15 -0.12 0.19 0.01 0.118]
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