Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

GacticExplosion - MetaTrader 5 Expert | MT5 EA Download - MetaTrader 5 Resources

author EAcpu | 5 reads | 0 comments |

This Expert Advisor was inspired by the forum topic "Requests and Ideas" (MQL5 only!), comment .

The Expert Advisor only performs operations on new bars (calculations are performed when new bars appear, the EA does not work within the bars).

EA operations are limited by the following operating time , specified in hours. For example, business hours can be set from 8 am to 5 pm:

New positions can only be opened during business hours. Position closing is also allowed during non-working hours.

The position amount is set manually in the input parameters and is always equal to a fixed amount .

When to open your first trade: If the 200 EMA is below the new bar, buy. Sell ​​means the 200 EMA is above a new bar.

If the net profit (commission + swap + profit) is equal to or greater than the minimum profit (specified in the account currency) the position (or positions) should be closed.

If a trade is unprofitable at the opening of the next new bar, we do not perform any operations on the open positions until a total profit is obtained for all trades combined.

If there are open positions and the total net profit is negative, a new position is opened at the opening of each new bar. Continue opening new positions until the minimum profit value has been reached.

When the number of positions exceeds 8, the following restrictions apply:

We continue to open new positions similar to the previous 8 positions, but now positions can be opened only under the following conditions: the distance between the new bar price and the last opened position is not less than 10 pips .

If the price of the current bar is 500 to 999 pips from the first opening price , we open a new position according to Rule 8.1, but now we skip at least 3 candlesticks.

If the price of the current bar is 1000 to 2000 pips from the first opening price , we open a new position according to Rule 8.1, but now we skip at least 6 candlesticks.


Attachment download

📎 galacticexplosion.mq5 (31.71 KB)

Source: MQL5 #19655

Verification code Refresh