AlgoScriptX

MAMA Indicator for cTrader – Ehlers MAMA/FAMA

Last updated August 2, 2026

Free
  • Lifetime updates
  • License key for 1 trading account
  • Email support

← Marketplace

Overview

Forex ATR

MAMA FAMA is an overlay indicator for cTrader based on John Ehlers’ MESA Adaptive Moving Average (MAMA) and its companion, the Following Adaptive Moving Average (FAMA). It draws both lines, marks their crosses with arrows and adds a trend/range reading to filter them.

What it does

MAMA has no fixed length. It measures the dominant price cycle and how fast the cycle’s phase advances. Most of the time it uses a small smoothing factor and stays almost flat. About every half cycle the measured phase snaps back, the factor jumps to the Fast Limit and MAMA catches up with price in one step. That gives MAMA its staircase shape behind price. FAMA applies half of MAMA’s smoothing factor to MAMA itself, so it steps at the same moments but moves less. Ehlers designed the pair so that the lines cross mainly after larger changes in direction.

Key features

  • MAMA and FAMA lines — MAMA is lime above FAMA and orange-red below it; FAMA is blue. A light cloud fills the space between them.
  • Cross arrows — Up arrow below the bar when MAMA crosses above FAMA, down arrow above the bar when it crosses below. By default only closed bars are evaluated.
  • ATR placement — ATR sets the arrow distance from the candle and expresses the MAMA–FAMA gap in ATR. It does not create signals.
  • Regime reading — A value from −1 to +1, adapted from Ehlers’ Continuation Index idea (not his exact formula): a low-lag UltimateSmoother is compared with a slower Laguerre filter and the gap is scaled by its recent size. Positive = fast smoother above the slow filter, negative = below, near zero = no clear side.
  • Regime Gate (optional) — Up arrows only while the regime value is above the threshold, down arrows only while it is below minus the threshold.
  • Info panel — Trend side, regime value (“trend” beyond ±0.5, otherwise “range”), measured cycle in bars (6–50), alpha, MAMA–FAMA spread in ATR and phase.
  • Sound alert — Optional sound when a new arrow appears, once per bar.
  • CSV export — Optional log of every cross, with a gate-pass flag, for your own statistics.

Settings and defaults

  • License Key — empty
  • Fast Limit — 0.5 (0.01–0.99); Slow Limit — 0.05 (0.01–0.5). Ehlers’ suggested values; a Slow Limit above Fast Limit is clamped to it
  • ATR Periods — 14; ATR MA Type — Exponential
  • Show Signals — on; Signal Offset (ATR) — 0.5
  • Closed Bars Only — on; when off, the forming bar’s arrow can appear and vanish before the close
  • Sound Alert — off; Alert Sound — Announcement
  • Laguerre Length — 20; regime window, the UltimateSmoother uses half of it
  • Laguerre Gamma — 0.5; higher = slower Laguerre filter
  • Regime Gate — off; Regime Threshold — 0.0
  • Export Events — off; Export Subfolder — empty (relative name only)
  • Show Panel — on

How to use it

  • Read MAMA’s colour as the current side; arrows mark where that side changed.
  • To keep only crosses that agree with the regime, switch on Regime Gate and raise the threshold gradually.
  • Combine crosses with levels you already use instead of trading every one. Ideas: MESA adaptive MA strategies on cTrader.

Limitations

  • MAMA and FAMA still react after price has moved. In choppy, sideways markets they can cross back and forth, and crosses can come late.
  • Noisy, thin or gapping markets can make the cycle measurement less reliable.
  • Values on the forming bar change until it closes. The regime value describes the recent past and can turn at any time.

License & platform

Protected by AlgoScriptX online license verification (v2). The indicator stays inactive until your License Key is verified. The license is tied to your cTrader account and re-checked hourly, with 24 hours of grace if the license server is unreachable.

  • Platform: cTrader
  • Type: overlay indicator
  • Access rights: None (no full-access permission requested)

Important notes

This is an analysis tool; it does not place trades. No indicator predicts the market: crosses and regime readings describe what price has done, not what it will do. Test rules on a demo account first and use your own risk management.

Setup

  • Download the .algo file from My licenses and double-click it to install (install guide)
  • Add the indicator to any chart and paste your License Key
  • Adjust Fast/Slow Limit and Regime Gate to your style

Specifications

Platform cTrader
Type Indicator
Version 1.0.0
License License key · 1 trading account
Non-repainting Yes
Alerts Yes
Chart placement On the price chart
Free

Reviews

No reviews yet. Be the first to share your experience after purchase.

Discussion

Have a question about this product? Ask the seller — public answers help everyone.

No questions yet. Be the first to ask.

Version history

v1.0.0
Current Initial
  • Initial release
A

AlgoScriptX Team

  • Member since 2026
  • 11 products
  • ✓ Verified seller

More from this seller