has anyone coded the linear average
already for amibroker ?
It is included in metatrader.
Linear Weighted Moving Average (LWMA)
In the case of weighted moving average, the latest data is
of more value than more early data. Weighted moving average is calculated by
multiplying each one of the closing prices within the considered series, by a
certain weight coefficient.
LWMA = SUM(Close(i)*i, N)/SUM(i, N)
Where:
SUM(i, N) — is the total sum of weight coefficients.