ChartDirector 7.1 (.NET Edition)

FinanceChart.addVolBars


Usage

[C#]public BarLayer addVolBars(int height, int upColor, int downColor, int flatColor);
[VB]Public Function addVolBars(height As Integer, upColor As Integer, downColor As Integer, flatColor As Integer) As BarLayer

Description

Adds a volume bar chart layer on the main chart.

Arguments

ArgumentDefaultDescription
height(Mandatory)The height of the bar chart layer in pixels.
upColor(Mandatory)The color to used on an 'up' day. An 'up' day is a day where the closing price is higher than that of the previous day.
downColor(Mandatory)The color to used on a 'down' day. A 'down' day is a day where the closing price is lower than that of the previous day.
flatColor(Mandatory)The color to used on a 'flat' day. A 'flat' day is a day where the closing price is the same as that of the previous day.

Return Value

A BarLayer object representing the bar layer created.