Financial Toolbox | ![]() ![]() |
Syntax
Arguments
High |
High prices for a security. A column vector. |
Low |
Low prices for a security. An column vector. |
Close |
Closing prices for a security. A column vector. |
Open |
Opening prices for a security. A column vector. |
Color |
(Optional) Candlestick color. A string. MATLAB supplies a default color if none is specified. The default color differs depending on the background color of the figure window. See ColorSpec in the MATLAB documentation for color names. |
Description
candle(High, Low, Close, Open, Color)
plots a candlestick chart given column vectors with the high, low, closing, and opening prices of a security.
If the closing price is greater than the opening price, the body (the region between the opening and closing price) is unfilled.
If the opening price is greater than the closing price, the body is filled.
Examples
Given High
, Low
, Close
, and Open
as equal-size vectors of stock price data
plots a candlestick chart with cyan candles.
See Also
bolling
, dateaxis
, highlow
, movavg
, pointfig
![]() | busdate | cfamounts | ![]() |