Platforms to show: All Mac Windows Linux Cross-Platform

Back to CDFinanceChartMBS class.

Previous items Next items

CDFinanceChartMBS.addPVT(height as Integer, ColorValue as color) as CDXYChartMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 11.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Same as the other addPVT method, but uses color instead of integer data type for passing color values.

See also:

CDFinanceChartMBS.addPVT(height as Integer, ColorValue as Integer) as CDXYChartMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 9.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Adds a Price Volume Trend indicator chart.

Arguments:
ArgumentDefaultDescription
height(Mandatory)The height of the indicator chart in pixels.
color(Mandatory)The color of the indicator line.

Return Value
A CDXYChartMBS object representing the chart created.

See also:

CDFinanceChartMBS.addROC(height as Integer, period as Integer, ColorValue as color) as CDXYChartMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 11.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Same as the other addROC method, but uses color instead of integer data type for passing color values.

See also:

CDFinanceChartMBS.addROC(height as Integer, period as Integer, ColorValue as Integer) as CDXYChartMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 9.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Adds a Rate of Change indicator chart.

Arguments:
ArgumentDefaultDescription
height(Mandatory)The height of the indicator chart in pixels.
period(Mandatory)The period to compute the indicator.
color(Mandatory)The color of the indicator line.

Return Value
A CDXYChartMBS object representing the chart created.

See also:

CDFinanceChartMBS.addRSI(height as Integer, period as Integer, ColorValue as Integer, range as Double, upColor as Integer, downColor as Integer) as CDXYChartMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 9.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Adds a Relative Strength Index indicator chart.

Arguments:
ArgumentDefaultDescription
height(Mandatory)The height of the indicator chart in pixels.
period(Mandatory)The period to compute the indicator.
color(Mandatory)The color of the indicator line.
range(Mandatory)The distance between the middle line and the upper and lower threshold lines.
upColor(Mandatory)The fill color when the indicator exceeds the upper threshold line.
downColor(Mandatory)The fill color when the indicator falls below the lower threshold line.

Return Value
A CDXYChartMBS object representing the chart created.

See also:

CDFinanceChartMBS.addSimpleMovingAvg(period as Integer, ColorValue as Integer) as CDLineLayerMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 9.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Adds a simple moving average line on the main chart.

Arguments:
ArgumentDefaultDescription
period(Mandatory)The moving average period
color(Mandatory)The color of the line.

Return Value
A CDLineLayerMBS object representing the line created.

See also:

CDFinanceChartMBS.addSlowStochastic(height as Integer, period1 as Integer, period2 as Integer, ColorValue1 as color, ColorValue2 as color) as CDXYChartMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 11.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Same as the other addSlowStochastic method, but uses color instead of integer data type for passing color values.

See also:

Some examples using this method:

CDFinanceChartMBS.addSlowStochastic(height as Integer, period1 as Integer, period2 as Integer, ColorValue1 as Integer, ColorValue2 as Integer) as CDXYChartMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 9.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Adds a Slow Stochastic indicator chart.

Arguments:
ArgumentDefaultDescription
height(Mandatory)The height of the indicator chart in pixels.
period1(Mandatory)The period to compute the %K line.
period2(Mandatory)The period to compute the %D line.
color1(Mandatory)The color of the %K line.
color2(Mandatory)The color of the %D line.

Return Value
A CDXYChartMBS object representing the chart created.

See also:

CDFinanceChartMBS.addStdDev(height as Integer, period as Integer, ColorValue as color) as CDXYChartMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 11.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Same as the other addStdDev method, but uses color instead of integer data type for passing color values.

See also:

CDFinanceChartMBS.addStdDev(height as Integer, period as Integer, ColorValue as Integer) as CDXYChartMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 9.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Adds a Moving Standard Deviation indicator chart.

Arguments:
ArgumentDefaultDescription
height(Mandatory)The height of the indicator chart in pixels.
period(Mandatory)The period to compute the indicator.
color(Mandatory)The color of the indicator line.

Return Value
A CDXYChartMBS object representing the chart created.

See also:

CDFinanceChartMBS.addStochRSI(height as Integer, period as Integer, ColorValue as Integer, range as Double, upColor as Integer, downColor as Integer) as CDXYChartMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 9.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Adds a Stochastic RSI indicator chart.

Arguments:
ArgumentDefaultDescription
height(Mandatory)The height of the indicator chart in pixels.
period(Mandatory)The period to compute the indicator.
color(Mandatory)The color of the indicator line.
range(Mandatory)The distance between the middle line and the upper and lower threshold lines.
upColor(Mandatory)The fill color when the indicator exceeds the upper threshold line.
downColor(Mandatory)The fill color when the indicator falls below the lower threshold line.

Return Value
A CDXYChartMBS object representing the chart created.

See also:

CDFinanceChartMBS.addThreshold(chart as CDXYChartMBS, layer as CDLineLayerMBS, topRange as Double, topColor as color, bottomRange as Double, bottomColor as color)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 11.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Same as the other addThreshold method, but uses color instead of integer data type for passing color values.

See also:

CDFinanceChartMBS.addThreshold(chart as CDXYChartMBS, layer as CDLineLayerMBS, topRange as Double, topColor as Integer, bottomRange as Double, bottomColor as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 9.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
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.

See also:

CDFinanceChartMBS.addTriMovingAvg(period as Integer, ColorValue as color) as CDLineLayerMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 11.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Same as the other addTriMovingAvg method, but uses color instead of integer data type for passing color values.

See also:

CDFinanceChartMBS.addTriMovingAvg(period as Integer, ColorValue as Integer) as CDLineLayerMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 9.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Adds a triangular moving average line on the main chart.

Arguments:
ArgumentDefaultDescription
period(Mandatory)The moving average period
color(Mandatory)The color of the line.

Return Value
A CDLineLayerMBS object representing the line created.

See also:

CDFinanceChartMBS.addTRIX(height as Integer, Period as Integer, ColorValue as color) as CDXYChartMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 11.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Same as the other addTRIX method, but uses color instead of integer data type for passing color values.

See also:

CDFinanceChartMBS.addTRIX(height as Integer, Period as Integer, ColorValue as Integer) as CDXYChartMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 9.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Adds a TRIX indicator chart.

Arguments:
ArgumentDefaultDescription
height(Mandatory)The height of the indicator chart in pixels.
period(Mandatory)The period to compute the indicator.
color(Mandatory)The color of the indicator line.

Return Value
A CDXYChartMBS object representing the chart created.

See also:

CDFinanceChartMBS.addTypicalPrice(ColorValue as color) as CDLineLayerMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 11.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Same as the other addTypicalPrice method, but uses color instead of integer data type for passing color values.

See also:

CDFinanceChartMBS.addTypicalPrice(ColorValue as Integer) as CDLineLayerMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 9.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Adds a typical price line on the main chart.

Arguments:
ArgumentDefaultDescription
color(Mandatory)The color of the line.

Return Value
A CDLineLayerMBS object representing the line created.

See also:

CDFinanceChartMBS.addUltimateOscillator(height as Integer, period1 as Integer, period2 as Integer, period3 as Integer, ColorValue as Integer, range as Double, upColor as Integer, downColor as Integer) as CDXYChartMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 9.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Adds an Ultimate Oscillator indicator chart.

Arguments:
ArgumentDefaultDescription
height(Mandatory)The height of the indicator chart in pixels.
period1(Mandatory)The first moving average period to compute the indicator.
period2(Mandatory)The second moving average period to compute the indicator.
period3(Mandatory)The third moving average period to compute the indicator.
color(Mandatory)The color of the indicator line.
range(Mandatory)The distance between the middle line and the upper and lower threshold lines.
upColor(Mandatory)The fill color when the indicator exceeds the upper threshold line.
downColor(Mandatory)The fill color when the indicator falls below the lower threshold line.

Return Value
A CDXYChartMBS object representing the chart created.

See also:

CDFinanceChartMBS.addVolBars(height as Integer, upColor as Integer, downColor as Integer, flatColor as Integer) as CDBarLayerMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 9.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
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 CDBarLayerMBS object representing the bar layer created.

See also:

CDFinanceChartMBS.addVolIndicator(height as Integer, upColor as color, downColor as color, flatColor as color) as CDXYChartMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 11.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Same as the other addVolIndicator method, but uses color instead of integer data type for passing color values.

See also:

CDFinanceChartMBS.addVolIndicator(height as Integer, upColor as Integer, downColor as Integer, flatColor as Integer) as CDXYChartMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 9.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Adds a Volume indicator chart.

Arguments:
ArgumentDefaultDescription
height(Mandatory)The height of the indicator chart 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 CDXYChartMBS object representing the chart created.

See also:

CDFinanceChartMBS.addWeightedClose(ColorValue as color) as CDLineLayerMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 11.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Same as the other addWeightedClose method, but uses color instead of integer data type for passing color values.

See also:

CDFinanceChartMBS.addWeightedClose(ColorValue as Integer) as CDLineLayerMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 9.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Adds a weighted close line on the main chart.

Arguments:
ArgumentDefaultDescription
color(Mandatory)The color of the line.

Return Value
A CDLineLayerMBS object representing the line created.

See also:

CDFinanceChartMBS.addWeightedMovingAvg(period as Integer, ColorValue as color) as CDLineLayerMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 11.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Same as the other addWeightedMovingAvg method, but uses color instead of integer data type for passing color values.

See also:

CDFinanceChartMBS.addWeightedMovingAvg(period as Integer, ColorValue as Integer) as CDLineLayerMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 9.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Adds a weighted moving average line on the main chart.

Arguments:
ArgumentDefaultDescription
period(Mandatory)The moving average period
color(Mandatory)The color of the line.

Return Value
A CDLineLayerMBS object representing the line created.

See also:

CDFinanceChartMBS.addWilliamR(height as Integer, period as Integer, ColorValue as Integer, range as Double, upColor as Integer, downColor as Integer) as CDXYChartMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 9.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Adds a William %R indicator chart.

Arguments:
ArgumentDefaultDescription
height(Mandatory)The height of the indicator chart in pixels.
period(Mandatory)The period to compute the indicator.
color(Mandatory)The color of the indicator line.
range(Mandatory)The distance between the middle line and the upper and lower threshold lines.
upColor(Mandatory)The fill color when the indicator exceeds the upper threshold line.
downColor(Mandatory)The fill color when the indicator falls below the lower threshold line.

Return Value
A CDXYChartMBS object representing the chart created.

See also:

CDFinanceChartMBS.Constructor(width as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 9.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Creates a new FinanceChart object.

Arguments:
ArgumentDefaultDescription
width(Mandatory)The width of the chart in pixels. The height will be automatically determined as the chart is built.

CDFinanceChartMBS.currentChart as CDXYChartMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 12.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the current chart of this finance chart.

While you add parts to the finance chart, you can access the last one here.

CDFinanceChartMBS.enableAntiAlias(antiAlias as boolean)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 9.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Enables/Disables anti-alias.

Enabling anti-alias makes the line smoother. Disabling anti-alias make the chart file size smaller, and so can be downloaded faster through the Internet. The default is to enable anti-alias.

Arguments:
ArgumentDefaultDescription
antiAlias(Mandatory)True to enable anti-alias. False to disable anti-alias.

CDFinanceChartMBS.getToolTipDateFormat as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 9.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Gets the date/time format string to use for tool tips.

The format string returned will be one of the format strings specified when calling CDFinanceChartMBS.setToolTipDateFormat based on data point spacing, or the equivalent default value. The format string may then be used in other ChartDirector functions such as CDBaseChartMBS.getHTMLImageMap for producing image maps.

Returns the date/time format string to use for tool tips.

CDFinanceChartMBS.mainChart as CDXYChartMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 12.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Returns the main chart of this finance chart.

CDFinanceChartMBS.setAxisOnRight(b as Boolean)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 9.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets whether the main y-axis is on right of left side of the plot area.

The default is on right.

Arguments:
ArgumentDefaultDescription
b(Mandatory)A true value means the y-axis is on right. A false value means the y-axis is on left.

CDFinanceChartMBS.setData(timeStamps() as Double, highData() as Double, lowData() as Double, openData() as Double, closeData() as Double, volData() as Double, extraPoints as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 9.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the data to be used in the chart.

If some of the data are not available, some artificial values should be used. For example, if the high and low values are not available, you may use closeData as highData and lowData.

Arguments:
ArgumentDefaultDescription
timeStamps(Mandatory)An array of dates/times for the time intervals.
highData(Mandatory)The high values in the time intervals.
lowData(Mandatory)The low values in the time intervals.
openData(Mandatory)The open values in the time intervals.
closeData(Mandatory)The close values in the time intervals.
volData(Mandatory)The volume values in the time intervals.
extraPoints(Mandatory)The number of leading time intervals that are not displayed in the chart. These intervals are typically used for computing indicators that require extra leading data, such as moving averages.

CDFinanceChartMBS.setDateLabelFormat(yearFormat as string, firstMonthFormat as string, otherMonthFormat as string, firstDayFormat as string, otherDayFormat as string, firstHourFormat as string, otherHourFormat as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 9.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the date/time formats to use for the x-axis labels under various cases.

See Parameter Substitution and Formatting on the syntax of ChartDirector format strings.

Arguments:
ArgumentDefaultDescription
yearFormat(Mandatory)The format for displaying labels on an axis with yearly ticks. The default is "{value|yyyy}".
firstMonthFormat(Mandatory)The format for displaying labels on an axis with monthly ticks. This parameter applies to the first available month of a year (usually January) only, so it can be formatted differently from the other labels. The default is "<*font=bold*>{value|mmm yy}".
otherMonthFormat(Mandatory)The format for displaying labels on an axis with monthly ticks. This parameter applies to months other than the first available month of a year. The default is "{value|mmm}".
firstDayFormat(Mandatory)The format for displaying labels on an axis with daily ticks. This parameter applies to the first available day of a month only, so it can be formatted differently from the other labels. The default is "<*font=bold*>{value|d mmm}".
otherDayFormat(Mandatory)The format for displaying labels on an axis with daily ticks. This parameter applies to days other than the first available day of a month. The default is "{value|d}".
firstHourFormat(Mandatory)The format for displaying labels on an axis with hourly resolution. This parameter applies to the first tick of a day only, so it can be formatted differently from the other labels. The default is "<*font=bold*>{value|d mmm<*br*>h:nna}".
otherHourFormat(Mandatory)The format for displaying labels on an axis with hourly. resolution. This parameter applies to ticks at hourly boundaries, except the first tick of a day. The default is "{value|h:nna}".

CDFinanceChartMBS.setDateLabelSpacing(labelSpacing as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method ChartDirector MBS ChartDirector Plugin 9.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets the minimum label spacing between two labels on the time axis.

Arguments:
ArgumentDefaultDescription
labelSpacing(Mandatory)The label spacing in pixels. The default is 50 pixels.

Previous items Next items

The items on this page are in the following plugins: MBS ChartDirector Plugin.


The biggest plugin in space...