Code covered by the BSD License  

Highlights from
Plot Stock Prices

1.0

1.0 | 1 rating Rate this file 12 Downloads (last 30 days) File Size: 2.43 KB File ID: #11699
image thumbnail

Plot Stock Prices

by Malcolm Wood

 

14 Jul 2006 (Updated 07 Apr 2010)

Retrieves and plots historical stock prices

| Watch this File

File Information
Description

A very simple function which uses the DataFeed toolbox to retrieve stock prices for a specified number of days from the Yahoo service and plots them.

e.g. to see how your Microsoft shares have done over the last three months, just type:
>> show_chart('MSFT',90)

Required Products Datafeed Toolbox
MATLAB release MATLAB 7.10 (2010a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (2)
29 Jun 2007 Sunil Tapashetti

fetch function for historic data returns date in a form which is unknown. It is not in the same form as <now>. Try this fetch function
 d = fetch(C,'INFOSYSTC.NS','Close',datestr(n),datestr(n-num_days),'d');

Is it something typical to Indian Stock Market?

28 Sep 2007 Dimitri Shvorob

A trivial wrapper, and nothing that's not in toolbox doc.

Please login to add a comment or rating.
Updates
17 Dec 2009

Review

07 Apr 2010

Added copyright lines and upgraded error handling to use the latest syntax.

Tag Activity for this File
Tag Applied By Date/Time
finance Malcolm Wood 22 Oct 2008 08:32:33
modeling Malcolm Wood 22 Oct 2008 08:32:33
analysis Malcolm Wood 22 Oct 2008 08:32:33
datafeed financial Malcolm Wood 22 Oct 2008 08:32:33
datafeed Malcolm Wood 22 Oct 2008 08:32:33
prices Malcolm Wood 22 Oct 2008 08:32:33
plot Malcolm Wood 22 Oct 2008 08:32:33
stocks Malcolm Wood 22 Oct 2008 08:32:33
yahoo Malcolm Wood 22 Oct 2008 08:32:33
stocks Maxim Greenberg 03 Nov 2008 06:47:30
prices Maxim Greenberg 03 Nov 2008 06:47:35

Contact us at files@mathworks.com