ChartDirector 7.0 (Java Edition)

FinanceChart.addMACD


Usage

public XYChart addMACD(int height, int period1, int period2, int period3, int color, int signalColor, int divColor)

Description

Adds a MACD 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 moving average period of the signal line.
color(Mandatory)The color of the indicator line.
signalColor(Mandatory)The color of the signal line.
divColor(Mandatory)The color of the divergent bars.

Return Value

A XYChart object representing the chart created.