Return value of the Time Series Average indicator over the last N periods of the selected price.
Syntax:
1 |
TimeSeriesAverage[N](price) |
Return value of the Time Series Average indicator over the last N periods of the selected price.
Syntax:
1 |
TimeSeriesAverage[N](price) |
Anybody know what the difference between this function and Average[n](price) is?
I am wondering the same stuff…. almost 8 years later !!
Time Series Forecast Moving Average (TSFMA):
TSFMA is a type of linear regression applied to a price series.
It calculates the regression value for each bar using the least square fit method, which aims to minimize the sum of the squares of the differences between the observed values and those predicted by the model.
It is dynamic and adjusts as new data comes in, projecting the regression line into the future to forecast the next value.
Standard Linear Regression:
A standard linear regression also fits a line through data points using the least squares method. However, it typically represents the relationship between two variables.
Unlike TSFMA, a standard linear regression indicator does not extend the line beyond the calculated period, meaning it doesn’t project or forecast future values. It only shows the trend within the existing data set.
It does not add slope to the end value of the regression line, meaning it doesn’t assume a continued direction beyond the last data point.
The key difference lies in the forecasting capability of TSFMA, which uses the regression line to predict future values, while the standard linear regression is used for illustrating the trend within the existing data without making predictions.