Matlab Stock Market Scripts

Below are links to various stock market related Matlab scripts.

Note: Please read the disclaimer. The author is not providing professional investing advice or recommendations. You are responsible for any investment decisions you make using the scripts and I do not guarantee that the scripts are free of errors.

as_goes_january.m
A script used to gain further insight into the reliability of the so-called January Rule (as goes January, so goes the year). See the accompanying article about this here.

examine_indices.m
A starter Matlab script for building your own market barometer. Retrieves recent price and volume action of the Dow, NASDAQ, and S&P 500 to help you identify high volume buying, selling, or stalling to help predict where the market is headed. See the accompanying article about this here.

get_hist_stock_data.m
A Matlab function that retrieves historical stock data (high, low, open, close, volume) from Yahoo! Finance. See the accompanying article about this here.

get_index_pes.m
A Matlab function that estimates the current P/E’s of major US stock market indices. See the accompanying article about this here.

get_last_trade.m
A Matlab function that retrieves the “Last Trade” price per share from Yahoo! Finance. See the accompanying article about this here.

get_trailing_pe.m
The main purpose of this script is just to demonstrate how to use Matlab’s java interface to retrieve any bit of data from a web page. In this case we go and read a P/E statistic from the Yahoo! Finance site. See the accompanying article about this here.


Google