The Endpoint Moving Average (EPMA) is focus on divergences between the original time series and the transposed time series. They may be used in forecasting applications or as additional inputs for neural analyses.
EPMA(n) = [2 / (n * (n + 1))] * Sum of (((3 * i) - n - 1) * Close(i)) from i = 1 to i = n
GT::Indicators::EPMA->new()
GT::Indicators::EPMA->new([50])
GT::Indicators::EPMA->new([30], "OPEN", $GET_OPEN)