INVITE-ONLY SCRIPT

# Profitable MAMA & FAMA Crossover

Updated
Introduction
The MESA Adaptive Moving Average (MAMA) was originally presented by John F. Ehlers. By design, it is a special kind of Exponential Moving Average with self-adjusting alpha. Its adaptation is based on the rate change of phase as measured by the Homodyne Discriminator and the alpha parameter is allowed to range between a maximum and minimum value (Fast Limit and Slow Limit).

Key Point: Ehlers suggested the maximum value to be 0.5 and the minimum to be 0.05.
The variable alpha is computed as the Fast Limit divided by the phase rate of change. If the phase rate of change is large, the variable alpha is bounded at the SlowLimit. Then, this alpha is used to compute MAMA and FAMA (Following Adaptive Moving Average).

Should we rely on Ehlers' suggestions if we want to achieve the best result with MAMA & FAMA crossover system?
Well, he is a good specialist and widely recognized author, I respect him, but the answer is no and you can see results on the chart.

What is our goal?
We want to find the best configuration for MAMA & FAMA Crossover. To achieve that we need to analyze the MAMA's alpha parameter or, more specific, the bounds for this parameter, Fast and Slow Limits.

What is this tool?
This tool is a performance optimizer that uses decision tree-based algorithm under the hood to find the most profitable settings for the MAMA & FAMA Crossover. It analyzes a bunch of different Fast Limits (between 0.01 to 0.8 with step of 0.1) and Slow Limits (between 0.01 to 0.6 with step of 0.1) and backtests each combination across the entire history of an instrument. If the more profitable parameters were found, the indicator will switch its values to the found ones immediately.

So, instead of manually selecting and testing parameters just apply this indicator to your chart and
relax - the algorithm will find the best parameters for you

It has a special alert that notifies when the more profitable settings were detected.

NOTE: It does not change what has already been plotted.
NOTE 2: This is not a strategy, but an algorithmic optimizer.

Reference: https://www.mesasoftware.com/papers/MAMA.pdf

MAMA & FAMA Crossover can be found here:
Release Notes
• Update
Release Notes
• Update
algorithmalgorithmicautomatedehlersExponential Moving Average (EMA)famaMESA Adaptive Moving Average (MAMA)Moving AveragesoptimaloptimizerprofitableTrend Analysis
Freelance -> Telegram: @alex_everget

A list of Free indicators:
bit.ly/2S7EPuN

A list of Paid indicators:
bit.ly/33MA81f

Earn \$30:

## Invite-only script

Access to this script is restricted to users authorized by the author and usually requires payment. You can add it to your favorites, but you will only be able to use it after requesting permission and obtaining it from its author. Contact everget for more information, or follow the author's instructions below.

Please note that this is a private, invite-only script that was not analyzed by script moderators. Its compliance to House Rules is undetermined. TradingView does not suggest paying for a script and using it unless you 100% trust its author and understand how the script works. In many cases, you can find a good open-source alternative for free in our Community Scripts.