|
Regression Indicators needed
Hi
i need Regression indicators for MT4 platform.below i placed all needed formulas and iformation of how to calcualte the indicators.plz make these for me and of course all members can use them also.any way here are the formulas :
****Linear Time Regression: Coefficient of Regression (Slope)****
Indicator Name : LinTimeRegSlope
Input Parameters:
TimeSeries=[Close or Open or High or Low]
RegressionPeriods= Integer Value(must be >= 3 )
Calculation:
[ n * sum(X*Y) - sum(X) * sum(Y) ] / [ n * sum(X*X) - sum(X) * sum(X) ]
where
sum(X*X) = sum of X*X over the last n periods
sum(X*Y) = sum of X*Y over the last n periods
sum(X) = sum of X over the last n periods
sum(Y) = sum of Y over the last n periods
X = Period Number
Y = Time Series
n = Regression Periods
****Linear Time Regression: Coefficient of Regression (Slope)****
Last edited by mimi; 02-08-2008 at 07:47 PM.
|