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 | GalacticExplosion

MetaTrader Experts, Indicators, Scripts and Libraries

The Expert Advisor was inspired by the forum topic Requests & Ideas (MQL5 only!), comment #299.

Description of the System

  1. The Expert Advisor only performs actions on a new bar (calculations are performed at the moment of a new bar emergence, the EA does not work inside the bar).

  2. The EA operation is restricted by operation time, which is specified in hours. For example, operation hours can be set from 8 am to 5 pm:

    8 am - operation hours - 5 pm

    New positions can ONLY be opened in working hours. POSITION CLOSING is also allowed in non-working hours.

  3. Position volume is set manually in input parameters and is always equal to a fixed amount.

  4. When to open the first trade: BUY if the 200 EMA is below the new bar. SELL is the 200 EMA is above the new bar.

  5. A position (or positions) should be closed if the NET profit (commission + swap + profit) is equal to or greater than Minimum profit (specified in the account currency).

  6. If at the opening of the next new bar trading is not in profit, we do nothing with open positions until all trades together make a total profit.

  7. If there are open positions and the total NET profit is negative, open a new position at the opening of each new bar. Continue opening new positions until the Minimum profit value is reached.

  8. When there are more than 8 open positions, the following limitations apply:

    1. We continue opening new positions similar to the first 8 positions, but now a position can only be opened if the distance between the new bar price and the last open position is no less than 10 points.

    2. If the current bar price is at a distance of 500 to 999 points from the price of the first open position, we open a new position according to the rule 8.1, but now we skip a minimum of 3 candlesticks.

    3. If the current bar price is at a distance of 1000 to 2000 points from the price of the first open position, we open a new position according to the rule 8.1, but now we skip a minimum of 6 candlesticks.

19655

Best MetaTrader Indicators + Profitable Expert Advisors