Need help writing a datacursormode Text Update Function to display high, low, close, date, & volume data as a Datatip on a plot made with the highlow function of the Financial Toolbox.
Afficher commentaires plus anciens
I have high, low, and close prices plotted against index no. on the x-axis (I use index no. rather than serial date number to eliminate gaps in the plot at each weekend where there are no price data). I wish to utilize a Text Update Function that picks up on the cursor's x-position only, regardless of y-position, and displays a Datatip with labels and values as follows:
Date: 01/26/2011
High: 23.75
Low: 22.15
Close: 23.20
Vol: 327000
The string date and volume are not even plotted, but should be picked up using the index from the plot (the x-position of the cursor) and finding the values in a separate matrix (from the high-low-close values) by using that index.
.
It is common to display the datatips this way on online plots of historical stock price data; I am hopeful someone has already developed such a Text Update Function for these plots in Matlab.
I have Matlab version 7.4.0.287 (R2007a)
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Time Series Events dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!