Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 5 Indicator | MAMy v3

The author of the idea: Victor Chebotariov

MQL5 code author: barabashkakvn

The indicator is based on three moving averages. If we attach these MAs to the chart, we get something similar to Alligator. The operation principle is similar as well.

  1. If MA Close exceeds MA (H+L+O+C)/4, while MA (H+L+O+C)/4 exceeds MA Open - BUY.
  2. If MA Close is less than MA (H+L+O+C)/4, while MA (H+L+O+C)/4 is less than MA Open - SELL.
  3. If MA Close exceeds MA (H+L+O+C)/4 - CLOSE SHORT POSITION.
  4. If MA Close is less than MA (H+L+O+C)/4 - CLOSE LONG POSITION.


The indicator shows these signals using two lines:

  1. Green line shows buy/sell signals. If the zero line is crossed upwards - BUY, downwards - SELL.
  2. Red line shows market exit signals. If the zero line is crossed upwards - CLOSE SHORT POSITION, downwards - CLOSE LONG POSITION.

MetaTrader Experts, Indicators, Scripts and Libraries

22574