[]
Creates a new trendline.
ITrendline Add(TrendlineType type, int order = 2, int period = 2, double forward = 0, double backward = 0, double intercept = NaN, bool displayEquation = false, bool displayRSquare = false, string name = null)
Function Add(type As TrendlineType, Optional order As Integer = 2, Optional period As Integer = 2, Optional forward As Double = 0, Optional backward As Double = 0, Optional intercept As Double = NaN, Optional displayEquation As Boolean = False, Optional displayRSquare As Boolean = False, Optional name As String = Nothing) As ITrendline
Type | Name | Description |
---|---|---|
TrendlineType | type | The trendline type. |
int | order | The trendline order when |
int | period | The trendline period when |
double | forward | The number of periods (or units on a scatter chart) that the trendline extends forward. |
double | backward | The number of periods (or units on a scatter chart) that the trendline extends backward. |
double | intercept | The trendline intercept. If this argument is omitted, the intercept is automatically set by the regression. |
bool | displayEquation |
|
bool | displayRSquare |
|
string | name | The name of the trendline as text. |
Type | Description |
---|---|
ITrendline | An ITrendline object that represents the new trendline. |