ChartDirector 7.1 (.NET Edition)

FinanceChart.addSimpleMovingAvg


Usage

[C#]public LineLayer addSimpleMovingAvg(int period, int color);
[VB]Public Function addSimpleMovingAvg(period As Integer, color As Integer) As LineLayer

Description

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 LineLayer object representing the line created.