Description
emaplot is used to plot a line plot of
an exponential moving average. An exponential moving average is a
special case of moving average. It is weighted so that the calculation is skewed
toward more recent data.
The syntax is used to define the starting and ending data points of the plot (a and
b), the lookback period (p), the desired color, the
line style and the line thickness (t). The available colors, styles and
thicknesses available for perplot follow normal O-Matrix standards.
val is the numerical quantity to be plotted, integer, real
or double precision.
a, b and p must be integer quantities.
color and style must be input as character values.
Example:
The following example is taken from the code shown in the Example in the
Preparing a Charting Window for Use section of this manual.
emaplot(c,1,L,fibo(3),"red","solid",3)
Here c is the quantity being plotted in the
EAS Charting Window, 1 and L are the starting/ending data points
and the lookback period over which c was calculated is fibo(3).