This macro draws a trend line across a specified series.

SYNTAX:

@TRENDLINE nSeries nValue

PARAMETERS:

; Series (0...1000) to apply the trend line.nSeries

; Bitwise flags (0...127) to activate one or more of the following trend lines:nValue

1 = Mean Line

2 = Standard Deviation Line

4 = Linear Regression Line

8 = Natural Log Regression Line

16 = Polynomial Regression Line

32 = Exponential Regression Line

64 = Log Regression Line

EXAMPLE:

@TRENDLINE 0 4

@TRENDLINE 1 8

@TRENDLINE 2 20

PERSISTENT:YES

ALSO SEE:@MOVA; to draw a moving average line

@TRENDLINE_ALLDATA to draw a linear regression line through all data points in a chart

Next Macro Previous Macro Return to Alpha List

Next Macro in this Group Previous Macro in this Group< Return to Group List