Clear Filters
Clear Filters

>> Matlab program to read stock price data and run live algorithm.

10 views (last 30 days)
We have developed a financial algorithm that we tested using historical stock price data(read from a text file). Next we want to run the algorithm as a real life simulation.
My idea is to write an additional Perl script that gets stock price from yahoo finance and updates a file X. Then it calls the matlab program, which reads the file X and outputs the data in a file Y(csv,text ... format). I can then use excel or other application to read and plot the output file.
Question: What do you think about my strategy? Is this the best strategy? Can I call the Matlab program directly from Perl? Can the whole program be written in Matlab itself without reverting to Perl? Please advise.

Answers (2)

Thomas
Thomas on 13 Apr 2012
You can read the stock price directly from the yahoo website
doc urlread
Also MATLAB Trendy does something similar..

Sean de Wolski
Sean de Wolski on 13 Apr 2012
  1 Comment
Sinan Islam
Sinan Islam on 3 Dec 2020
It would be great if Matlab adds an example to show how to stream data from the Datafeed toolbox in real time to a live intraday price chart.

Sign in to comment.

Categories

Find more on Financial Data in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!