Project name: Interactive stock chart simulator
Use Matlab version compatible with R2017a.
Receive realtime stock data for IBM using Datafeed Toolbox from IQFeed data provider and print interactive chart similar to Yahoo finance IBM 1 and 5 minute stock chart:
[login to view URL]
Also refer to the attached sample screenshot
The upper screen contains stock data in candlestick format or a simple line, with moving averages, while the lower screen has a MACD technical indicator, all available in Matlab Financial toolbox. The most recent data is displayed on the right hand side.
The chart intervals can be selected as 1 or 5 min, and length of the chart display expressed in the number of bars (e.g. 200) to be entered.
Once a new data has been received after defined interval (1min or 5min) it will be appended on the right side, while the oldest record on the left side will be removed from the screen, and remaining shifted to the left. Hence, the lenght of the chart display remains the same, i.e. acting like a basic interactive real-time chart with moving timeframe window, similar to Yahoo finance. The lower screen with MACD indicator will behave in the same way. MACD indicator will be calculated for the newest record only and added on the right side. All indicators need to be calculated for the most recent data only.
The chart initial setting is to load the stock data to populate the screen, for the length of the chart display. From then it will be updated dynamically, bar-by-bar every 1 or 5 minutes, as described above.
The chart will have a crosshair cursor similar to Yahoo finance, or Matlab sample chartfts, with legend displayed on XY axis.
Upon exit the chart should close the connection.