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 | Simplest Hedging EA ever

MetaTrader Experts, Indicators, Scripts and Libraries

Author of the idea — Monu Ogbe, author of the mq5 code — barabashkakvn.

If an even simpler EA exists, I would like to see it!

The EA does not use any indicators. It simply opens two opposite positions when a new bar appears.

Then, it waits till both are closed by SL or TP and opens the next couple of positions.

Manual optimization allows us to select the best parameters where SL is lower than TP for each of the three trading pairs and receive the three possible results:

  • Both positions are profitable
  • One position is profitable, while another one is loss-making (the profit covers the loss)
  • Both positions are loss-making

The "Open prices only" mode is recommended since it trades only at a new bar opening.

The best results have been achieved on EURGBP M5, while EURUSD, GBPUSD and EURCHF have also shown good results.

Feel free to improve the code as you like!

16920

Best MetaTrader Indicators + Profitable Expert Advisors