ChartDirector 5.1 (.NET Edition)

FinanceChart.addThreshold


Usage

[VB] Public Sub addThreshold(c As XYChart, layer As LineLayer, topRange As Double, topColor As Integer, bottomRange As Double, bottomColor As Integer)
[C#] public void addThreshold(XYChart c, LineLayer layer, double topRange, int topColor, double bottomRange, int bottomColor);

Description

Adds an upper/lower threshold range to an existing indicator chart.

Arguments

ArgumentDefaultDescription
c(Mandatory)The indicator chart to add the threshold range to.
layer(Mandatory)The line layer that the threshold range applies to.
topRange(Mandatory)The upper threshold.
topColor(Mandatory)The color to fill the region of the line that is above the upper threshold.
bottomRange(Mandatory)The lower threshold.
bottomColor(Mandatory)The color to fill the region of the line that is below the lower threshold.

Return Value

None