highlow - High, low, open, close chart

Syntax

highlow(High, Low, Close, Open, Color)
Handles = highlow(High, Low, Close, Open, Color)

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 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.

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.

highlow(AssetHi, AssetLo, AssetCl, [], 'cyan')

plots the price data using cyan lines.

See Also

bolling, candle, dateaxis, highlow, movavg, pointfig

  


 © 1984-2008- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS