Integral of Linear Regression Slope

Custom MT4 expert advisors published here.

Moderator: admin

Integral of Linear Regression Slope

Postby Alexander.Gettinger » Mon Nov 25, 2013 2:34 pm

Integral of Linear Regression Slope (ILRS moving average).

Formulas:
ILRS[i]=(N*Sum1-Sum*Sumy)/(Sum*Sum-N*Sum2)+MVA(I,N), where
Sum=N*(N-1)*0.5,
Sum2=N*(N-1)*(2*N-1)/6,
Sum1=1*Price[i-1]+2*Price[i-2]+…+(N-1)*Price[i-N+1],
Sumy=Price[i]+Price[i-1]+…+Price[i-N+1],
MVA(i,N) – Simple Moving Average,
N - Length.

ILRS_MA_MQL.PNG


Download:
ILRS_MA.mq4
(2.02 KiB) Downloaded 963 times
Alexander.Gettinger
FXCodeBase: Confirmed User
 
Posts: 3785
Joined: Wed Mar 31, 2010 9:40 pm
Location: Russia, Omsk

Return to MT4 Expert Advisors

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 9 guests

cron