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

High, low, open, close chart.

Syntax

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. Optional. To specify color when op is unknown, enter op as an empty matrix [].
color
Vertical line 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

highlow(hi, lo, cl, op, color) plots the high, low, opening, and closing prices of an asset. Plots are vertical lines whose top is the high, bottom is the low, open is a short horizontal tick to the left, and close is a short horizontal tick to the right.

h = highlow(hi, lo, cl, op, color) plots the figure and returns the handles h of the lines. See Using MATLAB Graphics for information on graphics and object handles.

Example

The high, low, and closing prices for an asset are stored in equal-length vectors assethi, assetlo, and assetcl respectively

plots the price data using cyan lines.

See Also

bolling, candle, dateaxis, movavg, pointfig



[ Previous | Help Desk | Next ]