Financial Toolbox | ![]() ![]() |
Syntax
candle(High, Low, Close, Open, Color)
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.
Examples
Given High
, Low
, Close
, and Open
as equal-size vectors of stock price data
candle(High, Low, Close, Open, 'cyan')plots a candlestick chart with cyan candles.
See Also
bolling
, dateaxis
, highlow
, movavg
, pointfig
![]() | busdate | cfamounts | ![]() |