File Exchange

image thumbnail

Plot Stock Prices

version 1.2.0.1 (2.43 KB) by

Retrieves and plots historical stock prices

5 Downloads

Updated

View License

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)

Comments and Ratings (2)

Dimitri Shvorob

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

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?

Updates

1.2.0.1

Updated license

1.2

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

1.1

Review

MATLAB Release
MATLAB 7.10 (R2010a)

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video