The author of the idea: Victor Chebotariov

MQL5 code author: barabashkakvn

The EA is based on  MAMy v3 indicator and implements the following conditions:

  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.

Example for EURUSD H1: