Ehlers Filters -- moving average type smoothers
EhlersFilter(HLC, n = 15, nCoefLookback = 10,
priceMethod = "Close",
coefMethod = c("Distance", "AbsVal", "Ichimoku"),
sumType = c("arithmetic", "wilder"))
an HLC type xts object
number of periods to look back
number of periods over which to compute one coefficient
"Close" for closing price, otherwise uses Ehlers (H+L)/2
one of three possible methods to compute a coefficient. Distance computes the sum of squares of differences of the last nCoefLookback prices and the current price. AbsVal computes the absolute difference between the current price and the price nCoefLookback periods ago. Ichimoku computes the average of the highest high of the last nCoefLookback periods and the lowest low.
either of "arithmetic" or "wilder" type arguments for the type of sum.
the quotient of the sum of the last n coefficients multiplied by price divided by the sum of the coefficients.