Fresh MQL5 code release – perfect for enhancing your MT4/MT5 strategies.
MA Crossover EA — an expert advisor based on the crossover of moving averages
The expert advisor opens trades when two moving averages (Fast and Slow) cross. It works on any instrument and timeframe.
Features:
Never miss news-driven moves – use the News OCO Expert Advisor to place pending orders safely around economic releases. Find out more.
- Opens a BUY trade when the Fast MA crosses from bottom to top
- Opens a SELL position when the Fast MA crosses from top to bottom
- Setting Stop Loss and Take Profit
- Only one position at a time
- Trading only on a new bar (optional)
- Customisable parameters
Parameters:
- Lot — lot size
- FastMAPeriod, SlowMAPeriod — MA periods
- StopLoss, TakeProfit — levels in pips
- MagicNumber — magic number
- TradeOnNewBar — trade only on bar close
Recommendations:
Before using this expert advisor on a live account, test it in the Strategy Tester and optimise the parameters for your specific instrument.

Level up your trading with professional RobotFX expert advisors and indicators. Visit robotfx.org for proven MT4/MT5 tools.
77414