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 | Basket Manager EA

MetaTrader Experts, Indicators, Scripts and Libraries

The rules are:

  • if you have less than n-positions open the EA will do nothing.
  • the moment you open the n-th position the EA will close all previous positions if their total PnL is positive.
  • if you have greater(or equal) than n-positions it will close everything as soon as the total PnL is positive.

 The rules above guarantee that you won't grow a too large basket that cause risk to your capital. Also it will help you with saving profit every now and then.

Note that the positions have to have same amount of risk(not necessarily lot size as the volatility could be different on different instruments).

59651