TMovingAverageFunction
Hierarchy Properties Methods Events
Unit
StatChar
Description
TMovingAverageFunction is a descendant of TTeeMovingFunction. It does an average calculation of last Period point values. To see a visual representation of TeeChart Extended Functions, go to the TeeChart User Guide.
Calculation: TMovingAverageFunction will calculate the simple or weighted average of every group of Period points.
Example:
We have a Series with the following Y values: 4 8 2 6 7 2 1
And we want to plot a simple Moving Average of Period: 3
That is: (4+8+2)/3 (8+2+6)/3 (2+6+7)/3 (6+7+2)/3 (7+2+1)/3
Then: 14/3 16/3 15/3 15/3 10/3
New appended points will trigger new MovingAverage points. Changing the Period property (both at design and runtime) will recalculate entirely the MovingAverage.