| Financial Toolbox | Search  Help Desk |
| candle | Examples See Also |
Syntax
candle(hi, lo, cl, op, color)candle(hi, lo, cl, op)
Arguments
hiloclopcolorcolor names.Description
candle(hi, lo, cl, op, color)
plots a candlestick chart given N-by-1 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 filled.
If the opening price is greater than the closing price, the body is empty.
Example
Givenhi, lo, cl, and op as equal-size vectors of stock price data
candle(hi, lo, cl, op, 'cyan')plots a candlestick chart with cyan candles.
See Also
bolling, dateaxis, highlow, movavg, pointfig