AddHighLowPlot Method

The AddHighLowPlot method adds a 2D hi-low-close plot to an existing 2D graph, equivalent to Graph | Add to Graph | Plot. Returns an AutoHLPlot object.

Syntax

object.AddHighLowPlot( worksheet, xCol, hiCol, loCol, openCol, closeCol, xAxis, yAxis, id )

 

Parameter Type Description
worksheet String required, full path and file name of the data
xCol Variant optional, default = 1 (column A)
hiCol Variant optional, default = 2 (column B)
loCol Variant optional, default = 3 (column C)
openCol Variant optional, default = 4 (column D)
closeCol Variant optional, default = 5 (column E)
id Variant optional, plot name

 

Remarks

2D graphs can only be added to other 2D graphs.

Example

This example shows how to add a high-low-close plot.

Graph1.AddHighLowPlot(GrapherApp.Path + "\samples\hilo.dat")

 

Used by: AutoGraph object

See Also

AddHighLowGraph