@MOVA (Moving Average Line)

This macro applies a scientific or standard moving average line to a specified series. Note that the bScimovMode and nPeriod parameters are universal so they will apply to ALL moving average lines being drawn on the chart.

SYNTAX:

@MOVA nSeries bShow bSciMovMode nPeriod

PARAMETERS:

nSeries; 0...511 defines the series to draw absolute (0=Series 1)

bShow; 1 = SHOW moving average. 0 = HIDE moving average.

bSciMovMode; 1 = Scientfic moving average. 0 = Standard moving average

nPeriod; 0...1000 periods to use in moving average calculation.

EXAMPLE:

This example sets a normal 3-day moving average to the first series.

@MOVA 0 1 0 3

PERSISTENT:

YES

REQUIREMENTS:

Crystal Reports 10 or Higher

ALSO SEE:

@TRENDLINE; to draw a trend line in a chart

@TRENDLINE_ALLDATA to draw a linear regression line through all data points in a chart

Next Macro Previous Macro Return to Alpha List

Next Macro in this Group Previous Macro in this Group Return to Group List