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 Expert Advisor | Smoothing Average

MetaTrader Experts, Indicators, Scripts and Libraries

Idea by: Rietsuiker

Code mq5 by: barabashkakvn

The EA trades on iMA (Moving Average, MA). It holds no more than one position in the market.

Opening rules (Revers signals == false):

  • Open BUY: Price ASK > MA on bar #0 - MA delta
  • Open SELL: Price BID < MA on bar #0 + MA delta

If Revers signals == true, then the open signals will be reversed.

Closing rules (Revers signals == false):

  • Close BUY: Price ASK < MA on bar #0 - (MA delta * MA delta coefficient for close)
  • Close SELL: Price BID > MA on bar #0 + (MA delta * MA delta coefficient for close)

If Revers signals == true, then the close signals will be reversed.

MA delta is the distance between the indicator and the price.

22653