pointfig(Data)plots a point and figure chart from a series of prices of a security. Upward price movements are plotted asX's and downward price movements are plotted asO's.
Load the fileSimulatedStock.mat, which provides a timetable (TMW) for financial data for TMW stock. This Point and Figure chart is for closing prices of the stock TMW for the most recent 21 days. Note that the variable name of asset price is be renamed to'Price'(case insensitive).
loadSimulatedStock.matTMW.Properties.VariableNames{'Close'} ='Price'; pointfig(TMW(1:200,:)) title('Point and figure chart for TMW')
Data—Data for a series of prices matrix|table|timetable
Data for a series of prices, specified as a matrix, table, or timetable. Timetables and tables withMrows must contain a variable named'Price'(case insensitive).
Data Types:double|table|timetable
ax—Valid axis object current axes (ax = gca)(default) |axes object
(Optional) Valid axis object, specified as an axes object. The point and figure plot is created in the axes specified byaxinstead of in the current axes (ax = gca). The optionaxcan precede any of the input argument combinations.
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.