this
Description
perplot
is used to plot a line plot of a lookback period based quantity like a calculated indicator such as MACD. The function is useful since a period based quantity can only begin at the day for a calculation that corresponds with the largest period of the calculation. For instance, suppose an indicator were constructed that incorporates the difference between a 55 period moving average and a 21 period moving average. Any plot of this resulting quantity could only display accurate data on day 56 of the series, since a 55 day moving average would not exist until that time. The linplot command is different in that it plots an entire series such as price or some calculated quantity that is accurate over the full length of the data range.

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 line 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.

          perplot(m,1,L,plf+1,"blue","solid",5)

Here m is the quantity being plotted in the EAS Charting Window, 1 and L are the starting/ending data points and plf is the lookback period over which m was calculated.