Financial Toolbox    
highlow

High, low, open, close chart

Syntax

Arguments

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
(Optional) Opening prices for a security. A column vector. To specify Color when Open is unknown, enter Open as an empty matrix [].
Color
(Optional) 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 MATLAB documentation for color names.

Description

highlow(High, Low, Close, Open, 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.

Handles = highlow(High, Low, Close, Open, Color) plots the figure and returns the handles of the lines.

Examples

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


  fwd2zero holidays