MAAF

The Median-Average Adaptive Filter was introduced by John F. Ehlers in the Stocks & Commodities article “The Secret Behind The Filter – What’s The Difference”. It addresses the difference between two types of noise filters, namely the average and the median.

Indicator Description

The average will attempt to eliminate noise by summing to its own average value, whereas the Median Average Adaptive Filter (MAAF) simply ignores outliers (noise) altogether. Accordingly, a big spike within a median data set will have no effect on it’s output. For example, if we have a dataset of 10 consecutive 1s, both the average and median is 1. However, if the next value in the dataset is 10, the new average is 1.9 (9×1 + 10 / 10 = 1.9), whereas the median remains unchanged at 1. This is because the median filter ranks all samples within the dataset, using the middle one as its filter output.

You may start with a relatively large lookback period using an odd number in order to ensure that the MAAF will be centered. The filter will respond to larger moves but does not move significantly during consolidations, thereby avoiding noise signals sideways markets.

For further details, please refer to the Stocks & Commodities V. 23:3 (28-29): What’s The Difference by John F. Ehlers.

The indicator is available for NinjaTrader 8.