Search
GBP
Trading Tools
    Menu Close

    Ehlers MESA Adaptive Indicator for cTrader

    Ehlers MESA Adaptive Indicator for cTrader


    Support via Forum & AI Assistant

    The Ehlers MESA Adaptive Moving Average (MAMA) uses advanced signal processing to adjust in real time to changing market cycles. Unlike standard moving averages, it reduces lag and reacts quickly to price action, making it a valuable tool for identifying trend shifts, especially in algorithmic trading on platforms like cTrader.
    (OS) Type: Windows & Mac OS Compatible
    Current version: 1.0.0
    Updated: Saturday, 23 August 2025

    cTrader Indicator

    Need a cTrader broker?  Open a demo account

    Educational use only: Read our disclaimer

    Personal Use Only

    Free for personal use under our license agreement. Redistribution & resale are strictly prohibited.

    cTrader Software





    MESA Adaptive Moving Average indicator is a trend-following indicator developed by John Ehlers, and unlike standard moving averages that use a fixed lookback period, MAMA adapts in real time by analysing price cycles through Ehlers' Maximum Entropy Spectrum Analysis. This advanced method allows the indicator to respond more quickly to shifts in market conditions, making it especially useful for identifying trend changes and improving entry and exit timing.

    The MAMA indicator is made up of two lines, the main MAMA line and the FAMA (Following Adaptive Moving Average) line. Unlike static averages, this adaptive approach helps cut through noise during sideways markets while staying responsive when prices move sharply.

    Traders using platforms like cTrader benefit from MAMA’s dynamic nature, especially when precision and timely signal detection are key for both trend and countertrend trading strategies.

     

    cTrader Ehlers MESA Adaptive Indicator

     

    Ehlers MESA Adaptive Moving Average Formula

    The formula for the Ehlers MESA Adaptive Moving Average Indicator involves several steps, using both price data and phase calculations derived from digital signal processing techniques. Here is a simplified version of the core logic behind it, based on John Ehlers' original work:

    // Step 1: Calculate the Typical Price
    price = (high + low) / 2
    
    // Step 2: Determine the phase (using Hilbert Transform methods - simplified here)
    deltaPhase = rate of phase change (from Hilbert Transform)
    alpha = fastLimit / deltaPhase (bounded by slowLimit)
    
    // Step 3: Calculate MAMA and FAMA
    MAMA = alpha * price + (1 - alpha) * previous_MAMA
    FAMA = 0.5 * alpha * MAMA + (1 - 0.5 * alpha) * previous_FAMA
    

    Notes:

    • fastLimit is typically 0.5
    • slowLimit is typically 0.05
    • MAMA adapts faster in trending markets and slows down in sideways markets

     

    Key Concepts:

    • MAMA adapts to the dominant market cycle

    • FAMA lags behind MAMA, forming a signal line

    • Crossovers between MAMA and FAMA are used as trading signals

    This formula is non-linear and not based on fixed periods, making it different from traditional moving averages. It's often implemented using DSP techniques, so most traders use it via pre-built indicators on platforms like cTrader or MetaTrader rather than coding it from scratch.

     

    How To Install & Remove

    First, ensure that you have the cTrader trading platform installed. Then, unzip the file and double-click it to install the platform automatically.

     

    Need Extra Help?

    Get instant answers with cTrader Sensei — our free AI assistant built for the cTrader platform. It can explain the indicator settings, suggest trading strategies, and guide you step-by-step through this indicator. Rated 4.9 out of 5 in the ChatGPT Store.

    Chat with cTrader Sensei

    Prefer human help? Visit our support forum where our team and community can assist you.

    Note: cTrader Sensei runs on OpenAI's ChatGPT platform. To use it, you will be asked to create a free OpenAI account. Registration is quick and costs nothing.

    The free version works immediately, but upgrading to a ChatGPT Plus subscription unlocks the latest GPT model, which provides more accurate and detailed answers for trading, coding, and product support.

    To upgrade, log in to ChatGPT, click your profile in the bottom left, and select Upgrade to Plus.

     

    Need a Broker

    If you're still looking for a broker with tight spreads and fast execution, visit our top cTrader broker site.