Financial Toolbox
  Go to function:
    Search    Help Desk 
candle    Examples   See Also

Candlestick chart.

Syntax

candle(hi, lo, cl, op)

Arguments

hi
High prices for a security. An N-by-1 vector.
lo
Low prices for a security. An N-by-1 vector.
cl
Closing prices for a security. An N-by-1 vector.
op
Opening prices for a security. An N-by-1 vector.
color
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 online MATLAB Help Desk for color 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

Given hi, lo, cl, and op as equal-size vectors of stock price data

plots a candlestick chart with cyan candles.

See Also

bolling, dateaxis, highlow, movavg, pointfig



[ Previous | Help Desk | Next ]