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 | VR---BUCH

Author of the idea: Vladimir Pastushak

MQL5 code author: barabashkakvn

The EA uses an uncommon filter of two iMAs (Moving Average, MA) intersection. The price of bar #0 from the ENUM_APPLIED_PRICE enumeration can be set as a filter.

When using the signal filter ("Fast" - fast MA, "Slow" - slow MA, "Price" - price calculated for bar #0 from the ENUM_APPLIED_PRICE enumeration)

  • Buy: Fast > Slow AND Price > Fast
  • Sell: Fast < Slow AND Price < Fast

Presence of a position on the market is considered:

  • if there is no position
    • in case of a Buy signal, open a BUY position
    • in case of a Sell signal, open a SELL position
  • if a position is present
    • in case of a Buy signal, close a SELL position
    • in case of a Sell signal, close a BUY position

EURUSD, M5:

MetaTrader Experts, Indicators, Scripts and Libraries

21962