linebreak
Line break chart
Description
Examples
Load the file SimulatedStock.mat
, which provides a timetable (TMW
) for financial data for TMW stock. This Linebreak 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).
load SimulatedStock.mat TMW.Properties.VariableNames{'Close'} = 'Price'; linebreak(TMW(end-20:end,:)) title('Line Break Chart for TMW')
Input Arguments
Data for a series of prices, specified as a matrix, table, or timetable.
Timetables and tables with M
rows must contain a variable
named 'Price'
(case insensitive).
Data Types: double
| table
| timetable
(Optional) Valid axis object, specified as an axes object. The linebreak
plot is created in the axes specified by ax
instead of in
the current axes (ax = gca
). The option
ax
can precede any of the input argument
combinations.
Data Types: object
Output Arguments
Graphic handle of the figure, returned as a handle object.
More About
A line break chart is a type of financial chart used to represent price movements of an asset over time, focusing on price action rather than time intervals.
The line break chart is particularly useful for identifying trends and reversals in price movements without the noise of time-based charts, such as candlestick or bar charts. Line break charts help traders and analysts make decisions based on significant price changes. A line break chart contains a series of vertical lines that represent price movements. Each line is drawn based on a specific price threshold rather than a fixed time interval. The chart consists of a series of "lines" that change direction based on price movements. A new line is drawn when the price moves a certain amount beyond the previous line.
Version History
Introduced in R2008aThe Data
input accepts negative prices.
linebreak
accepts Data
input as a matrix,
timetable
, or table
.
The syntax for linebreak
has changed. Previously, when using
table input, the first column of dates could be serial date numbers, date character
vectors, or datetime arrays, and you were required to have specific number of
columns.
When using table input, the new syntax for linebreak
supports:
No need for time information. If you want to pass in date information, use timetable input.
No requirement of specific number of columns. However, you must provide valid column names.
linebreak
must contain a column named‘price’
(case insensitive).
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Seleziona un sito web
Seleziona un sito web per visualizzare contenuto tradotto dove disponibile e vedere eventi e offerte locali. In base alla tua area geografica, ti consigliamo di selezionare: .
Puoi anche selezionare un sito web dal seguente elenco:
Come ottenere le migliori prestazioni del sito
Per ottenere le migliori prestazioni del sito, seleziona il sito cinese (in cinese o in inglese). I siti MathWorks per gli altri paesi non sono ottimizzati per essere visitati dalla tua area geografica.
Americhe
- América Latina (Español)
- Canada (English)
- United States (English)
Europa
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)