MESA adaptive moving average​​​​‌‍​‍​‍‌‍‌​‍‌‍‍‌‌‍‌‌‍‍‌‌‍‍​‍​‍​‍‍​‍​‍‌​‌‍​‌‌‍‍‌‍‍‌‌‌​‌‍‌​‍‍‌‍‍‌‌‍​‍​‍​‍​​‍​‍‌‍‍​‌​‍‌‍‌‌‌‍‌‍​‍​‍​‍‍​‍​‍‌‍‍​‌‌​‌‌​‌​​‌​​‍‍​‍​‍‌‍​‌‍‍​​‍‌‌​‌‍​‌‌‍‍‌‍‍‌‌‌​‌‍‌​‍‌‌‍​‌​​​‍‍‌​‌‍​‌‌‍‍‌‍‍‌‌‌​‌‍‌​‍‍‌​‌‌​‌‌‌‌‍‌​‌‍‍‌‌‍​‍‌‍‍‌‌‍‍‌‌​‌‍‌‌‌‍‍‌‌​​‍‌‍‌‌‌‍‌​‌‍‍‌‌‌​​‍‌‍‌‌‍‌‍‌​‌‍‌‌​‌‌​​‌​‍‌‍‌‌‌​‌‍‌‌‌‍‍‌‌​‌‍​‌‌‌​‌‍‍‌‌‍‌‍‍​‍‌‍‍‌‌‍‌​​‌​‌‌​‌‌​​‍‌‍​‌‌‍‌‍​​​‌‍‌‍​​‍‌‌‍​‍​‌‌​​​​‍​​‍‌​‌​‌‍‌‌‌‍​‍​​‌​‍‌‌‍​‍​‌‌‌‍​‍​‌​‍‌​​‍‌‍‌‌​​​​​‌‌‍​​‌​​‌​‌​​‌​​​‌​​‍​​‍‌‌​‌‍‌‌​​‌‍‌‌​‌‌‌​‌‍‌‌‌‍​‌‍‍​‌‍‍‌‍‍‌‌‍​‌‍​‌‌‍​‌​‍‌‌‍‍‌‍‌​‌‍‍‌‌‍​‌‍​‌‌‌​‌‍‌​‍​‍‌​​‌‍​‌‌‌​‌‍‍​​‌‌‍‍‌‌‍‍‌‍‌​‌‍‍‌‌‍​‌‍​‌‌‌​‌‍‌​‍‌​‍‌‍​‌‌‍‌‌‍‌‌​‌‍​‍‌‍​‌‌​‌‍‌‌‌‌‌‌‌​‍‌‍​​‌‌‍‍​‌‌​‌‌​‌​​‌​​‍‌‌​​‌​​‌​‍‌‌​​‍‌​‌‍​‍‌‌​​‍‌​‌‍‌‍​‌‍‍​​‍‌‌​‌‍​‌‌‍‍‌‍‍‌‌‌​‌‍‌​‍‌‌‍​‌​​​‍‍‌​‌‍​‌‌‍‍‌‍‍‌‌‌​‌‍‌​‍‍‌​‌‌​‌‌‌‌‍‌​‌‍‍‌‌‍​‍‌‍‌‍‍‌‌‍‌​​‌​‌‌​‌‌​​‍‌‍​‌‌‍‌‍​​​‌‍‌‍​​‍‌‌‍​‍​‌‌​​​​‍​​‍‌​‌​‌‍‌‌‌‍​‍​​‌​‍‌‌‍​‍​‌‌‌‍​‍​‌​‍‌​​‍‌‍‌‌​​​​​‌‌‍​​‌​​‌​‌​​‌​​​‌​​‍​​‍‌‍‌‌​‌‍‌‌​​‌‍‌‌​‌‌‌​‌‍‌‌‌‍​‌‍‍​‌‍‍‌‍‍‌‌‍​‌‍​‌‌‍​‌​‍‌‌‍‍‌‍‌​‌‍‍‌‌‍​‌‍​‌‌‌​‌‍‌​‍​‍‌‍‌​​‌‍​‌‌‌​‌‍‍​​‌‌‍‍‌‌‍‍‌‍‌​‌‍‍‌‌‍​‌‍​‌‌‌​‌‍‌​‍‌​‍‌‍​‌‌‍‌‌‍‌‌​‍‌‍‌​​‌‍‌‌‌​‍‌​‌​​‌‍‌‌‌‍​‌‌​‌‍‍‌‌‌‍‌‍‌‌​‌‌​​‌‌‌‌‍​‍‌‍​‌‍‍‌‌​‌‍‍​‌‍‌‌‌‍‌​​‍​‍‌‌

MESA adaptive moving average

The MESA adaptive moving average is a trend-following indicator. It adapts to price movements in a very unique way, based on the rate of change (ROC), as measured by the Hilbert Transform Discriminator. ​​​​‌‍​‍​‍‌‍‌​‍‌‍‍‌‌‍‌‌‍‍‌‌‍‍​‍​‍​‍‍​‍​‍‌​‌‍​‌‌‍‍‌‍‍‌‌‌​‌‍‌​‍‍‌‍‍‌‌‍​‍​‍​‍​​‍​‍‌‍‍​‌​‍‌‍‌‌‌‍‌‍​‍​‍​‍‍​‍​‍‌‍‍​‌‌​‌‌​‌​​‌​​‍‍​‍​‍‌‍​‌‍‍​​‍‌‌​‌‍​‌‌‍‍‌‍‍‌‌‌​‌‍‌​‍‌‌‍​‌​​​‍‍‌​‌‍​‌‌‍‍‌‍‍‌‌‌​‌‍‌​‍‍‌​‌‌​‌‌‌‌‍‌​‌‍‍‌‌‍​‍‌‍‍‌‌‍‍‌‌​‌‍‌‌‌‍‍‌‌​​‍‌‍‌‌‌‍‌​‌‍‍‌‌‌​​‍‌‍‌‌‍‌‍‌​‌‍‌‌​‌‌​​‌​‍‌‍‌‌‌​‌‍‌‌‌‍‍‌‌​‌‍​‌‌‌​‌‍‍‌‌‍‌‍‍​‍‌‍‍‌‌‍‌​​‌​‌‌​‌‌​​‍‌‍​‌‌‍‌‍​​​‌‍‌‍​​‍‌‌‍​‍​‌‌​​​​‍​​‍‌​‌​‌‍‌‌‌‍​‍​​‌​‍‌‌‍​‍​‌‌‌‍​‍​‌​‍‌​​‍‌‍‌‌​​​​​‌‌‍​​‌​​‌​‌​​‌​​​‌​​‍​​‍‌‌​‌‍‌‌​​‌‍‌‌​‌‌‌​‌‍‌‌‌‍​‌‍‍​‌‍‍‌‍‍‌‌‍​‌‍​‌‌‍​‌​‍‌‌‍‍‌‍‌​‌‍‍‌‌‍​‌‍​‌‌‌​‌‍‌​‍​‍‌​​‌‍​‌‌‌​‌‍‍​​‌‌‍​‌‍‌‍‍‌‌​‌‍‌‌‌‍‍‌‌​​‍‌‌​‌‌‌​​‍‌‌‌‍‍‌‍‌‌‌‍‌​‍‌‌​​‌​‌​​‍‌‌​​‌​‌​​‍‌‌​​‍​​‍‌‍‌‌​‌​‌‍​‍‌‍​‌​​​‍​‌‍‌​‌‍​‍‌‍​‌‌‍​​‍‌​‌​‍‌‌​​‍​​‍​‍‌‌​‌‌‌​‌​​‍‍‌‍​‌‍‍​‌‍‍‌‌‍​‌‍‌​‌​‍‌‍‌‌‌‍‍​‍‌‌​‌‌‌​​‍‌‌‌‍‍‌‍‌‌‌‍‌​‍‌‌​​‌​‌​​‍‌‌​​‌​‌​​‍‌‌​​‍​​‍​​​​‍‌​​‍​‌‌​‌​​‌​​‌‌​​​​‌​‌​​‌‌‍​​‍‌‌​​‍​​‍​‍‌‌​‌‌‌​‌​​‍‍‌‌​‌‍‌‌‌‍​‌‌​​‌‍​‍‌‍​‌‌​‌‍‌‌‌‌‌‌‌​‍‌‍​​‌‌‍‍​‌‌​‌‌​‌​​‌​​‍‌‌​​‌​​‌​‍‌‌​​‍‌​‌‍​‍‌‌​​‍‌​‌‍‌‍​‌‍‍​​‍‌‌​‌‍​‌‌‍‍‌‍‍‌‌‌​‌‍‌​‍‌‌‍​‌​​​‍‍‌​‌‍​‌‌‍‍‌‍‍‌‌‌​‌‍‌​‍‍‌​‌‌​‌‌‌‌‍‌​‌‍‍‌‌‍​‍‌‍‌‍‍‌‌‍‌​​‌​‌‌​‌‌​​‍‌‍​‌‌‍‌‍​​​‌‍‌‍​​‍‌‌‍​‍​‌‌​​​​‍​​‍‌​‌​‌‍‌‌‌‍​‍​​‌​‍‌‌‍​‍​‌‌‌‍​‍​‌​‍‌​​‍‌‍‌‌​​​​​‌‌‍​​‌​​‌​‌​​‌​​​‌​​‍​​‍‌‍‌‌​‌‍‌‌​​‌‍‌‌​‌‌‌​‌‍‌‌‌‍​‌‍‍​‌‍‍‌‍‍‌‌‍​‌‍​‌‌‍​‌​‍‌‌‍‍‌‍‌​‌‍‍‌‌‍​‌‍​‌‌‌​‌‍‌​‍​‍‌‍‌​​‌‍​‌‌‌​‌‍‍​​‌‌‍​‌‍‌‍‍‌‌​‌‍‌‌‌‍‍‌‌​​‍‌‌​‌‌‌​​‍‌‌‌‍‍‌‍‌‌‌‍‌​‍‌‌​​‌​‌​​‍‌‌​​‌​‌​​‍‌‌​​‍​​‍‌‍‌‌​‌​‌‍​‍‌‍​‌​​​‍​‌‍‌​‌‍​‍‌‍​‌‌‍​​‍‌​‌​‍‌‌​​‍​​‍​‍‌‌​‌‌‌​‌​​‍‍‌‍​‌‍‍​‌‍‍‌‌‍​‌‍‌​‌​‍‌‍‌‌‌‍‍​‍‌‌​‌‌‌​​‍‌‌‌‍‍‌‍‌‌‌‍‌​‍‌‌​​‌​‌​​‍‌‌​​‌​‌​​‍‌‌​​‍​​‍​​​​‍‌​​‍​‌‌​‌​​‌​​‌‌​​​​‌​‌​​‌‌‍​​‍‌‌​​‍​​‍​‍‌‌​‌‌‌​‌​​‍‍‌‌​‌‍‌‌‌‍​‌‌​​‍‌‍‌​​‌‍‌‌‌​‍‌​‌​​‌‍‌‌‌‍​‌‌​‌‍‍‌‌‌‍‌‍‌‌​‌‌​​‌‌‌‌‍​‍‌‍​‌‍‍‌‌​‌‍‍​‌‍‌‌‌‍‌​​‍​‍‌‌

Like other moving averages, traders use this indicator to spot trends and trend reversals. This is done by crossovers between a fast and a slow moving average. When the fast moving average crosses the slow one upwards, a buy signal is generated, and will hold this signal until a bearish crossover takes place. Likewise, when the fast moving average crosses the slow one downwards, it will signal a sell until a bullish crossover takes place. ​​​​‌‍​‍​‍‌‍‌​‍‌‍‍‌‌‍‌‌‍‍‌‌‍‍​‍​‍​‍‍​‍​‍‌​‌‍​‌‌‍‍‌‍‍‌‌‌​‌‍‌​‍‍‌‍‍‌‌‍​‍​‍​‍​​‍​‍‌‍‍​‌​‍‌‍‌‌‌‍‌‍​‍​‍​‍‍​‍​‍‌‍‍​‌‌​‌‌​‌​​‌​​‍‍​‍​‍‌‍​‌‍‍​​‍‌‌​‌‍​‌‌‍‍‌‍‍‌‌‌​‌‍‌​‍‌‌‍​‌​​​‍‍‌​‌‍​‌‌‍‍‌‍‍‌‌‌​‌‍‌​‍‍‌​‌‌​‌‌‌‌‍‌​‌‍‍‌‌‍​‍‌‍‍‌‌‍‍‌‌​‌‍‌‌‌‍‍‌‌​​‍‌‍‌‌‌‍‌​‌‍‍‌‌‌​​‍‌‍‌‌‍‌‍‌​‌‍‌‌​‌‌​​‌​‍‌‍‌‌‌​‌‍‌‌‌‍‍‌‌​‌‍​‌‌‌​‌‍‍‌‌‍‌‍‍​‍‌‍‍‌‌‍‌​​‌​‌‌​‌‌​​‍‌‍​‌‌‍‌‍​​​‌‍‌‍​​‍‌‌‍​‍​‌‌​​​​‍​​‍‌​‌​‌‍‌‌‌‍​‍​​‌​‍‌‌‍​‍​‌‌‌‍​‍​‌​‍‌​​‍‌‍‌‌​​​​​‌‌‍​​‌​​‌​‌​​‌​​​‌​​‍​​‍‌‌​‌‍‌‌​​‌‍‌‌​‌‌‌​‌‍‌‌‌‍​‌‍‍​‌‍‍‌‍‍‌‌‍​‌‍​‌‌‍​‌​‍‌‌‍‍‌‍‌​‌‍‍‌‌‍​‌‍​‌‌‌​‌‍‌​‍​‍‌​​‌‍​‌‌‌​‌‍‍​​‌‌‍​‌‍‌‍‍‌‌​‌‍‌‌‌‍‍‌‌​​‍‌‌​‌‌‌​​‍‌‌‌‍‍‌‍‌‌‌‍‌​‍‌‌​​‌​‌​​‍‌‌​​‌​‌​​‍‌‌​​‍​​‍​‌​‌‌​‌‌​‌​‌‍​‌‌‍​‌‍‌‌​‌​‌‍​‌‍​‍​‍‌​​‌​‍‌‌​​‍​​‍​‍‌‌​‌‌‌​‌​​‍‍‌‍​‌‍‍​‌‍‍‌‌‍​‌‍‌​‌​‍‌‍‌‌‌‍‍​‍‌‌​‌‌‌​​‍‌‌‌‍‍‌‍‌‌‌‍‌​‍‌‌​​‌​‌​​‍‌‌​​‌​‌​​‍‌‌​​‍​​‍​​​​‍‌​​‍​‌‌​‌​​‌​​‌‌​​​​‌​‌​​‌‌‍​​‍‌‌​​‍​​‍​‍‌‌​‌‌‌​‌​​‍‍‌‌​‌‍‌‌‌‍​‌‌​​‌‍​‍‌‍​‌‌​‌‍‌‌‌‌‌‌‌​‍‌‍​​‌‌‍‍​‌‌​‌‌​‌​​‌​​‍‌‌​​‌​​‌​‍‌‌​​‍‌​‌‍​‍‌‌​​‍‌​‌‍‌‍​‌‍‍​​‍‌‌​‌‍​‌‌‍‍‌‍‍‌‌‌​‌‍‌​‍‌‌‍​‌​​​‍‍‌​‌‍​‌‌‍‍‌‍‍‌‌‌​‌‍‌​‍‍‌​‌‌​‌‌‌‌‍‌​‌‍‍‌‌‍​‍‌‍‌‍‍‌‌‍‌​​‌​‌‌​‌‌​​‍‌‍​‌‌‍‌‍​​​‌‍‌‍​​‍‌‌‍​‍​‌‌​​​​‍​​‍‌​‌​‌‍‌‌‌‍​‍​​‌​‍‌‌‍​‍​‌‌‌‍​‍​‌​‍‌​​‍‌‍‌‌​​​​​‌‌‍​​‌​​‌​‌​​‌​​​‌​​‍​​‍‌‍‌‌​‌‍‌‌​​‌‍‌‌​‌‌‌​‌‍‌‌‌‍​‌‍‍​‌‍‍‌‍‍‌‌‍​‌‍​‌‌‍​‌​‍‌‌‍‍‌‍‌​‌‍‍‌‌‍​‌‍​‌‌‌​‌‍‌​‍​‍‌‍‌​​‌‍​‌‌‌​‌‍‍​​‌‌‍​‌‍‌‍‍‌‌​‌‍‌‌‌‍‍‌‌​​‍‌‌​‌‌‌​​‍‌‌‌‍‍‌‍‌‌‌‍‌​‍‌‌​​‌​‌​​‍‌‌​​‌​‌​​‍‌‌​​‍​​‍​‌​‌‌​‌‌​‌​‌‍​‌‌‍​‌‍‌‌​‌​‌‍​‌‍​‍​‍‌​​‌​‍‌‌​​‍​​‍​‍‌‌​‌‌‌​‌​​‍‍‌‍​‌‍‍​‌‍‍‌‌‍​‌‍‌​‌​‍‌‍‌‌‌‍‍​‍‌‌​‌‌‌​​‍‌‌‌‍‍‌‍‌‌‌‍‌​‍‌‌​​‌​‌​​‍‌‌​​‌​‌​​‍‌‌​​‍​​‍​​​​‍‌​​‍​‌‌​‌​​‌​​‌‌​​​​‌​‌​​‌‌‍​​‍‌‌​​‍​​‍​‍‌‌​‌‌‌​‌​​‍‍‌‌​‌‍‌‌‌‍​‌‌​​‍‌‍‌​​‌‍‌‌‌​‍‌​‌​​‌‍‌‌‌‍​‌‌​‌‍‍‌‌‌‍‌‍‌‌​‌‌​​‌‌‌‌‍​‍‌‍​‌‍‍‌‌​‌‍‍​‌‍‌‌‌‍‌​​‍​‍‌‌

Unlike other moving averages, MESA won’t only give a signal when the crossover between moving averages has taken place. It will signal a buy or a sell until the next crossover occurs.​​​​‌‍​‍​‍‌‍‌​‍‌‍‍‌‌‍‌‌‍‍‌‌‍‍​‍​‍​‍‍​‍​‍‌​‌‍​‌‌‍‍‌‍‍‌‌‌​‌‍‌​‍‍‌‍‍‌‌‍​‍​‍​‍​​‍​‍‌‍‍​‌​‍‌‍‌‌‌‍‌‍​‍​‍​‍‍​‍​‍‌‍‍​‌‌​‌‌​‌​​‌​​‍‍​‍​‍‌‍​‌‍‍​​‍‌‌​‌‍​‌‌‍‍‌‍‍‌‌‌​‌‍‌​‍‌‌‍​‌​​​‍‍‌​‌‍​‌‌‍‍‌‍‍‌‌‌​‌‍‌​‍‍‌​‌‌​‌‌‌‌‍‌​‌‍‍‌‌‍​‍‌‍‍‌‌‍‍‌‌​‌‍‌‌‌‍‍‌‌​​‍‌‍‌‌‌‍‌​‌‍‍‌‌‌​​‍‌‍‌‌‍‌‍‌​‌‍‌‌​‌‌​​‌​‍‌‍‌‌‌​‌‍‌‌‌‍‍‌‌​‌‍​‌‌‌​‌‍‍‌‌‍‌‍‍​‍‌‍‍‌‌‍‌​​‌​‌‌​‌‌​​‍‌‍​‌‌‍‌‍​​​‌‍‌‍​​‍‌‌‍​‍​‌‌​​​​‍​​‍‌​‌​‌‍‌‌‌‍​‍​​‌​‍‌‌‍​‍​‌‌‌‍​‍​‌​‍‌​​‍‌‍‌‌​​​​​‌‌‍​​‌​​‌​‌​​‌​​​‌​​‍​​‍‌‌​‌‍‌‌​​‌‍‌‌​‌‌‌​‌‍‌‌‌‍​‌‍‍​‌‍‍‌‍‍‌‌‍​‌‍​‌‌‍​‌​‍‌‌‍‍‌‍‌​‌‍‍‌‌‍​‌‍​‌‌‌​‌‍‌​‍​‍‌​​‌‍​‌‌‌​‌‍‍​​‌‌‍​‌‍‌‍‍‌‌​‌‍‌‌‌‍‍‌‌​​‍‌‌​‌‌‌​​‍‌‌‌‍‍‌‍‌‌‌‍‌​‍‌‌​​‌​‌​​‍‌‌​​‌​‌​​‍‌‌​​‍​​‍​‌​​​‍‌‍‌‍​​‍‌‍​‌​‌‌​‌‌‌‍‌‌‌‍​‍‌‍​‌​‍​‌‍​‌​‍‌‌​​‍​​‍​‍‌‌​‌‌‌​‌​​‍‍‌‍​‌‍‍​‌‍‍‌‌‍​‌‍‌​‌​‍‌‍‌‌‌‍‍​‍‌‌​‌‌‌​​‍‌‌‌‍‍‌‍‌‌‌‍‌​‍‌‌​​‌​‌​​‍‌‌​​‌​‌​​‍‌‌​​‍​​‍​​​​‍‌​​‍​‌‌​‌​​‌​​‌‌​​​​‌​‌​​‌‌‍​​‍‌‌​​‍​​‍​‍‌‌​‌‌‌​‌​​‍‍‌‌​‌‍‌‌‌‍​‌‌​​‌‍​‍‌‍​‌‌​‌‍‌‌‌‌‌‌‌​‍‌‍​​‌‌‍‍​‌‌​‌‌​‌​​‌​​‍‌‌​​‌​​‌​‍‌‌​​‍‌​‌‍​‍‌‌​​‍‌​‌‍‌‍​‌‍‍​​‍‌‌​‌‍​‌‌‍‍‌‍‍‌‌‌​‌‍‌​‍‌‌‍​‌​​​‍‍‌​‌‍​‌‌‍‍‌‍‍‌‌‌​‌‍‌​‍‍‌​‌‌​‌‌‌‌‍‌​‌‍‍‌‌‍​‍‌‍‌‍‍‌‌‍‌​​‌​‌‌​‌‌​​‍‌‍​‌‌‍‌‍​​​‌‍‌‍​​‍‌‌‍​‍​‌‌​​​​‍​​‍‌​‌​‌‍‌‌‌‍​‍​​‌​‍‌‌‍​‍​‌‌‌‍​‍​‌​‍‌​​‍‌‍‌‌​​​​​‌‌‍​​‌​​‌​‌​​‌​​​‌​​‍​​‍‌‍‌‌​‌‍‌‌​​‌‍‌‌​‌‌‌​‌‍‌‌‌‍​‌‍‍​‌‍‍‌‍‍‌‌‍​‌‍​‌‌‍​‌​‍‌‌‍‍‌‍‌​‌‍‍‌‌‍​‌‍​‌‌‌​‌‍‌​‍​‍‌‍‌​​‌‍​‌‌‌​‌‍‍​​‌‌‍​‌‍‌‍‍‌‌​‌‍‌‌‌‍‍‌‌​​‍‌‌​‌‌‌​​‍‌‌‌‍‍‌‍‌‌‌‍‌​‍‌‌​​‌​‌​​‍‌‌​​‌​‌​​‍‌‌​​‍​​‍​‌​​​‍‌‍‌‍​​‍‌‍​‌​‌‌​‌‌‌‍‌‌‌‍​‍‌‍​‌​‍​‌‍​‌​‍‌‌​​‍​​‍​‍‌‌​‌‌‌​‌​​‍‍‌‍​‌‍‍​‌‍‍‌‌‍​‌‍‌​‌​‍‌‍‌‌‌‍‍​‍‌‌​‌‌‌​​‍‌‌‌‍‍‌‍‌‌‌‍‌​‍‌‌​​‌​‌​​‍‌‌​​‌​‌​​‍‌‌​​‍​​‍​​​​‍‌​​‍​‌‌​‌​​‌​​‌‌​​​​‌​‌​​‌‌‍​​‍‌‌​​‍​​‍​‍‌‌​‌‌‌​‌​​‍‍‌‌​‌‍‌‌‌‍​‌‌​​‍‌‍‌​​‌‍‌‌‌​‍‌​‌​​‌‍‌‌‌‍​‌‌​‌‍‍‌‌‌‍‌‍‌‌​‌‌​​‌‌‌‌‍​‍‌‍​‌‍‍‌‌​‌‍‍​‌‍‌‌‌‍‌​​‍​‍‌‌