| Financial Toolbox™ | ![]() |
candle(High, Low, Close, Open) candle(High, Low, Close, Open, Color, Dates, Dateform)
High | High prices for a security. A column vector. |
Low | Low prices for a security. A 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® software 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. |
Dates | (Optional) Column vector of dates for user specified X-axis tick labels. |
Dateform | (Optional) Date string format used as the x-axis tick labels. (See datetick in the MATLAB documentation.) You can specify a dateform only when tsobj does not contain time-of-day data. If tsobj contains time-of-day data, dateform is restricted to 'dd-mmm-yyyy HH:MM'. |
candle(High, Low, Close, Open) 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.
candle(High, Low, Close, Open, Color, Dates, Dateform) plots a candlestick chart given column vectors with the high, low, closing, and opening prices of a security. In addition, the optional arguments Color, Dates, and Dateform specify the color of the candle box and the date string format used as the x-axis tick labels.
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.
bolling, candle, dateaxis, highlow, movavg, pointfig
![]() | busdays | candle (fts) | ![]() |
| © 1984-2008- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |