Page 1 of 1

Least Square Moving Average

PostPosted: Wed Oct 09, 2013 10:01 am
by Alexander.Gettinger
Formulas:
LSMA[i]=Sum/L2, where
Sum[i] = (Length-N)*Price[i]+(Length-N-1)*Price[i-1]+…+(1-N)*Price[i-Length+1],
N = (Length+1)/3,
L2 = Length*(Length+1)/6.

LSMA_MQL.PNG


Download:
LSMA.mq4
(1.74 KiB) Downloaded 1143 times