Dundas Chart for Windows Forms
StartFromFirst Property
See Also  Send comments on this topic.
DundasWinChart Assembly > Dundas.Charting.WinControl Namespace > DataManipulator Class : StartFromFirst Property


Enterprise Edition Only Feature. Gets or sets a value that determines how moving average formulas deal with the first data points that do not have enough historical data to calculate the moving average.

Syntax

Visual Basic (Declaration)  
Public Property StartFromFirst As Boolean
Visual Basic (Usage) Copy Code
Dim instance As DataManipulator
Dim value As Boolean
 
instance.StartFromFirst = value
 
value = instance.StartFromFirst
C#  
public bool StartFromFirst {get; set;}

Return Value

A value determines how the first data points (the number of which equals the moving average period) are used. Defaults to False.

Remarks

There are four moving average formulas (Simple, Exponential, Triangular and Weighted), and each of these formulas calculates a moving average using a "Period", which is basically the number of data points used to calculate these averages. Averages of a specified period cannot be calculated for the first number of n data points, where n is the "Period", and this property determines how these first data points are dealt with.

If StartFromFirst is False (the default), the first n data points are just ignored and the moving average will start after n days using the previous n data points as historical data only.

If StartFromFirst is True, the first n data points will be calculated as the i period moving average, where i is the current index of data points. For example, the third data point will have a value which is equal to the 3 days moving average, the fourth data point will have a value which is equal to the 4 days moving average, etc. All data points after the nth data point will have the n days moving average applied.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2009 All Rights Reserved.