This document contains Matlab code to retrieve historical stock price data for IBM from Yahoo Finance and extract the date, open, high, low, close, volume, and adjusted close fields into numeric arrays. It first defines the stock symbol, retrieves the historical price webpage, and uses regular expressions to extract the date and numeric fields into cell arrays. It then converts these to numeric arrays for later analysis.
Download as TXT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
56 views
Example3 1.m
This document contains Matlab code to retrieve historical stock price data for IBM from Yahoo Finance and extract the date, open, high, low, close, volume, and adjusted close fields into numeric arrays. It first defines the stock symbol, retrieves the historical price webpage, and uses regular expressions to extract the date and numeric fields into cell arrays. It then converts these to numeric arrays for later analysis.
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1
%
% written by: % Ernest Chan % % Author of Quantitative Trading: % How to Start Your Own Algorithmic Trading Business % % [email protected] % www.epchan.com
clear; % make sure previously defined variables are erased.