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

Close-button

Stock Tracker

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

716

data points

Description:

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

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

Time Recorded (time1769) Data (data1769)
25 Jul 2014 10:15:28 [0.27 -0.06 0 0.05 0.2125]
24 Jul 2014 10:15:29 [0.05 -0.06 0.46 0.18 0.066]
23 Jul 2014 10:15:29 [0.87 0.32 0.84 0.5 0.795]
22 Jul 2014 10:15:26 [0.1 -0.03 0 -0.23 0.0655]
21 Jul 2014 10:15:25 [NaN]
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