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)
引用格式
Malcolm Wood (2024). Plot Stock Prices (https://www.mathworks.com/matlabcentral/fileexchange/11699-plot-stock-prices), MATLAB Central File Exchange. 检索来源 .
MATLAB 版本兼容性
创建方式
R2010a
兼容任何版本
平台兼容性
Windows macOS Linux类别
- Computational Finance > Financial Toolbox > Price and Analyze Financial Instruments >
- Computational Finance > Datafeed Toolbox > Financial Data >
在 Help Center 和 MATLAB Answers 中查找有关 Price and Analyze Financial Instruments 的更多信息
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!