Hi friends,
after hours and nights spent on fxDreema I finally created a structured framework to use as a base for my EAs. You only have to pick an indicator (or group of) to change your entry conditions. Here I just used a simple EMAs crossover.
It has martingale system to provide multiple entries if the entry conditions is still valid, a breakeven option and multiple money closing according to the amount of orders.
Let's see in detail what it does:

- Allow trading in different hours (London, NY, Asia)
- Use Technical exit: all trades will be closed when entry conditions fail
- Lot Multiplier: it allows Martingale entry if the price goes against your direction while entry condition is still valid.
- Distance Pips: the distance between entry and the first martingale order
- Close Multiple Order: if you have more than one open order but less than MaxOpenTrades, the system will close all orders when indicated profit (in money is reached)
- CloseSingleOrder: if you have only one open order (it usually means your entry is good) it will be closed in profit at the selected gain. I usually set it higher than the previous one.
- CloseEmergency: when Martingale has reached its full limit, it close at indicated gain (you could also set a negative value).
- Cut loss: it close every orders when reached a % drawdown of the account (I don't use it)
- Breakeven: you can set a distance in pips of when to activate BE and how many pips in profit for the new SL.
If you wanna use different entry conditions you can simply change the blocks 1991 and 1992, but remember to change also blocks 1995 and 1996 for exit conditions according to your strategy.
I created only an MT5 version because I don't use anymore MT4, but if someone wants to make an MT4 version feel free to do it.
I hope you will benefit from this and you will improve and share it with your ideas.
Good luck!







