Three pole Butterworth filter is used for smoothing in this moving average calculation algorithm. The filter is described in John Ehlers' book "Cybernetic Analysis for Stocks and Futures: Cutting-Edge DSP Technology to Improve Your Trading".
Translated from Russian by MetaQuotes Software Corp.
Original code: https://www.mql5.com/ru/code/584
The indicator acts in a fully opposite way comparing to the adaptive moving averages during a trend market: in case of a definite trend, both indicator lines (Lead Sine and Sine Wave) move parallel to each other and show the trend direction by their location relative to each other; in case of a flat, the Sine Wave indicator quickly reacts on the market swing movements.TwoPoleButterworthFilter
Two pole Butterworth filter is used for smoothing in this moving average calculation algorithm.